<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.newlc.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>NewLC - File, Streams and Stores - Comments</title>
 <link>http://www.newlc.com/en/topic-8648</link>
 <description>Comments for &quot;File, Streams and Stores&quot;</description>
 <language>en</language>
<item>
 <title>Re: File, Streams and Stores</title>
 <link>http://www.newlc.com/en/topic-8648#comment-49551</link>
 <description>&lt;p&gt;No, hard reset per definition reset everything. In fact, the question nearly answers itself, because if something survives hard reset, there is no guarantee that the phone works again afterwards, and the whole purpose of hard reset is defeated.&lt;/p&gt;

&lt;p&gt;If some files survived hard reset, one would need a &quot;really hard&quot; reset to be sure to get the phone working again &lt;img src=&quot;/sites/all/modules/smileys/packs/example/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; /&gt;&lt;br /&gt;
&lt;/p&gt;</description>
 <pubDate>Tue, 02 Dec 2008 10:39:02 +0100</pubDate>
 <dc:creator>rbrunner</dc:creator>
 <guid isPermaLink="false">comment 49551 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: File, Streams and Stores</title>
 <link>http://www.newlc.com/en/topic-8648#comment-49550</link>
 <description>&lt;p&gt;Hi thanx for the reply.&lt;/p&gt;

&lt;p&gt;Ok I  can write name value pair using RFile. But is there any place in Symbian storage where I can save this file &lt;br /&gt;
so that it retains its data even after the phone has been hard reset and we can read that file and reteive that data?&lt;/p&gt;

&lt;p&gt;Thanx &lt;/p&gt;

&lt;p&gt;&lt;/p&gt;</description>
 <pubDate>Tue, 02 Dec 2008 10:00:25 +0100</pubDate>
 <dc:creator>diya007</dc:creator>
 <guid isPermaLink="false">comment 49550 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: File, Streams and Stores</title>
 <link>http://www.newlc.com/en/topic-8648#comment-49479</link>
 <description>&lt;p&gt;Unfortunately not, never worked with CPermanentFileStore myself so far.&lt;/p&gt;

&lt;p&gt;&lt;div class=&quot;bb-quote&quot;&gt;&lt;blockquote class=&quot;bb-quote-body&quot;&gt;sample code that shows how to simply read and write using CPermanentFileStore&lt;/blockquote&gt;&lt;/div&gt;&lt;/p&gt;

&lt;p&gt;I am afraid given the complexity of CPermanentFileStore, this won&#039;t be simple in any case...&lt;/p&gt;

&lt;p&gt;Maybe it would be better for you to stop insisting that you know already the solution quite for sure and only lack some details now. Why not just describe in a few sentences what kind of data you want to store, how big it is, how and how often it will change, so it&#039;s possible to give an opinion whether CPermanentFileStore really is the solution to your problem?&lt;/p&gt;</description>
 <pubDate>Thu, 20 Nov 2008 11:31:27 +0100</pubDate>
 <dc:creator>rbrunner</dc:creator>
 <guid isPermaLink="false">comment 49479 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: File, Streams and Stores</title>
 <link>http://www.newlc.com/en/topic-8648#comment-49478</link>
 <description>&lt;p&gt;Hi thanx for such a quick reply.&lt;/p&gt;

&lt;p&gt;Could you give me a sample code that shows how to simply read and write using CPermanentFileStore.&lt;br /&gt;
I have been able to create the file using the above in C: of symbian.&lt;br /&gt;
But dont know how I could write or read through it, i being a newbie.&lt;/p&gt;

&lt;p&gt;Thanx so much in advance &lt;br /&gt;
 &lt;/p&gt;</description>
 <pubDate>Thu, 20 Nov 2008 10:38:17 +0100</pubDate>
 <dc:creator>diya007</dc:creator>
 <guid isPermaLink="false">comment 49478 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: File, Streams and Stores</title>
 <link>http://www.newlc.com/en/topic-8648#comment-49476</link>
 <description>&lt;p&gt;CPermanentFileStore implements something like a database, where you can store a number of different things, and can also update them after creating. This certainly has its uses, e.g. if your data to store is quite complex.&lt;/p&gt;

&lt;p&gt;If you just have a chunk of bytes that you must store somewhere permanently, nobody forces you to use CPermanentFileStore, and that would be overkill anyway in that case, so IMHO it&#039;s ok to directly use RFile for simple cases.&lt;/p&gt;

&lt;p&gt;By the way, if the data that you want to store has more the character of program settings instead of &quot;true&quot; working data, check whether you can use an INI file which exists for this purpose. Use the forum search with the term &quot;INI&quot; to find threads about this subject.&lt;/p&gt;</description>
 <pubDate>Thu, 20 Nov 2008 08:21:40 +0100</pubDate>
 <dc:creator>rbrunner</dc:creator>
 <guid isPermaLink="false">comment 49476 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: File, Streams and Stores</title>
 <link>http://www.newlc.com/en/topic-8648#comment-49474</link>
 <description>&lt;p&gt;Ok i agree with what you said. But since the Api has given CPermanentFileStore then there must be some difference between the two?&lt;br /&gt;
And thats what i want to know?&lt;/p&gt;</description>
 <pubDate>Thu, 20 Nov 2008 07:51:11 +0100</pubDate>
 <dc:creator>diya007</dc:creator>
 <guid isPermaLink="false">comment 49474 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: File, Streams and Stores</title>
 <link>http://www.newlc.com/en/topic-8648#comment-49472</link>
 <description>&lt;p&gt;Every simple file is a &quot;permanent store&quot; of sort: Once written, you won&#039;t loose your stuff. So why not just use a simple RFile, if CPermanentFileStore is a mystery to you?&lt;/p&gt;</description>
 <pubDate>Thu, 20 Nov 2008 07:07:06 +0100</pubDate>
 <dc:creator>rbrunner</dc:creator>
 <guid isPermaLink="false">comment 49472 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: File, Streams and Stores</title>
 <link>http://www.newlc.com/en/topic-8648#comment-49471</link>
 <description>&lt;p&gt;Hi all,&lt;/p&gt;

&lt;p&gt;Please reply. Its urgent.&lt;/p&gt;

&lt;p&gt;Can anyone guide me to write a function to store persistent data from my application using CPermanentFileStore?&lt;/p&gt;

&lt;p&gt;Or is there any other way to &quot;write byte array chunk of size in bytes to persistent store&quot;?&lt;/p&gt;

&lt;p&gt;Also where is this persistent data stored by CPermanentFileStore?&lt;/p&gt;

&lt;p&gt;Thanx&lt;br /&gt;
&lt;/p&gt;</description>
 <pubDate>Thu, 20 Nov 2008 05:29:01 +0100</pubDate>
 <dc:creator>diya007</dc:creator>
 <guid isPermaLink="false">comment 49471 at http://www.newlc.com</guid>
</item>
<item>
 <title> Re: File, Streams and Stores.URGENT!!!</title>
 <link>http://www.newlc.com/en/topic-8648#comment-49465</link>
 <description>&lt;p&gt;Hi all,&lt;/p&gt;

&lt;p&gt;Can anyone guide me to write a function to store persistent data from my application using CPermanentFileStore?&lt;/p&gt;

&lt;p&gt;Or is there any other way to &quot;write byte array chunk of size in bytes to persistent store&quot;?&lt;/p&gt;

&lt;p&gt;Also where is this persistent data stored by CPermanentFileStore?&lt;/p&gt;

&lt;p&gt;Thanx&lt;/p&gt;</description>
 <pubDate>Wed, 19 Nov 2008 14:25:29 +0100</pubDate>
 <dc:creator>diya007</dc:creator>
 <guid isPermaLink="false">comment 49465 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: File, Streams and Stores</title>
 <link>http://www.newlc.com/en/topic-8648#comment-48842</link>
 <description>&lt;p&gt;really  thats very helpful to beginners like me.&lt;br /&gt;
cheers to eric ...&lt;/p&gt;

&lt;p&gt;thanks a lot&lt;/p&gt;</description>
 <pubDate>Wed, 01 Oct 2008 06:48:49 +0200</pubDate>
 <dc:creator>pointer_raj</dc:creator>
 <guid isPermaLink="false">comment 48842 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: File, Streams and Stores</title>
 <link>http://www.newlc.com/en/topic-8648#comment-44549</link>
 <description>&lt;p&gt; &lt;img src=&quot;/sites/all/modules/smileys/packs/example/lol.png&quot; title=&quot;Laughing out loud&quot; alt=&quot;Laughing out loud&quot; /&gt;  It&#039;s very helpful, thx &lt;img src=&quot;/sites/all/modules/smileys/packs/example/lol.png&quot; title=&quot;Laughing out loud&quot; alt=&quot;Laughing out loud&quot; /&gt; &lt;/p&gt;</description>
 <pubDate>Thu, 14 Feb 2008 08:08:41 +0100</pubDate>
 <dc:creator>3AZZK</dc:creator>
 <guid isPermaLink="false">comment 44549 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: File, Streams and Stores</title>
 <link>http://www.newlc.com/en/topic-8648#comment-43317</link>
 <description>&lt;p&gt;&lt;span style=&quot;font-weight:bold&quot;&gt;good.... thanks! &lt;/span&gt;&lt;img src=&quot;/sites/all/modules/smileys/packs/example/wink.png&quot; title=&quot;Eye-wink&quot; alt=&quot;Eye-wink&quot; /&gt; &lt;/p&gt;</description>
 <pubDate>Wed, 05 Dec 2007 09:36:32 +0100</pubDate>
 <dc:creator>dlingt</dc:creator>
 <guid isPermaLink="false">comment 43317 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: File, Streams and Stores</title>
 <link>http://www.newlc.com/en/topic-8648#comment-40931</link>
 <description>&lt;p&gt;fOLLOWING CODE WORKS FOR STORING AND RETRIEVING InetAddr INTO Stream&lt;/p&gt;

&lt;p&gt;                        InetAddr  iIpAddress;&lt;br /&gt;
                        TBuf&lt;30&gt; bufTime;&lt;br /&gt;
   FOR WRITING TO STREAM&lt;br /&gt;
  -----------------------------------------&lt;br /&gt;
                                           &lt;br /&gt;
                                           iIpAddress.Output(bufTime);&lt;br /&gt;
		aStream&lt;&lt;bufTime;&lt;/p&gt;

&lt;p&gt;FOR READING FROM STREAM&lt;br /&gt;
-------------------------------------------&lt;br /&gt;
                                           aStream&gt;&gt;bufTime;&lt;br /&gt;
		iIpAddress.Input(bufTime);&lt;/p&gt;

&lt;p&gt; BUT I DID NOT GET SOLN AS FOR       TTime and TTimeIntervalSeconds Objects????????&lt;br /&gt;
  &lt;/p&gt;

&lt;p&gt;   CAN ANY ONE THROW ANY LIGHT ON IT!!!!!!!!!!!!!!!!!!!!!!&lt;/p&gt;</description>
 <pubDate>Thu, 23 Aug 2007 08:37:39 +0200</pubDate>
 <dc:creator>sandeepmhptr</dc:creator>
 <guid isPermaLink="false">comment 40931 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: File, Streams and Stores</title>
 <link>http://www.newlc.com/en/topic-8648#comment-40878</link>
 <description>&lt;p&gt;I found some problem in string and retrieving  &lt;br /&gt;
                     TTime iTime;&lt;br /&gt;
	TTimeIntervalSeconds iTimeOffset;&lt;br /&gt;
	TTime iDate;&lt;br /&gt;
	TInetAddr iIpAddress;&lt;/p&gt;

&lt;p&gt;            objects into stream.&lt;/p&gt;

&lt;p&gt;Can anyone tell how to write these objects into stream????????&lt;/p&gt;

&lt;p&gt;also TInt objects are not written into Stream -------------------  &lt;/p&gt;

&lt;p&gt;    RWriteStream&amp; aStream;&lt;br /&gt;
    TInt iColor;&lt;br /&gt;
    aStream&lt;&lt;iColor&lt;/p&gt;

&lt;p&gt;and I had to use&lt;br /&gt;
    RWriteStream&amp; aStream;&lt;br /&gt;
    TInt iColor;&lt;br /&gt;
    aStream.WriteInt32L(iColor);&lt;br /&gt;
                               &lt;/p&gt;</description>
 <pubDate>Wed, 22 Aug 2007 07:52:59 +0200</pubDate>
 <dc:creator>sandeepmhptr</dc:creator>
 <guid isPermaLink="false">comment 40878 at http://www.newlc.com</guid>
</item>
<item>
 <title>how to read and display .html file</title>
 <link>http://www.newlc.com/en/topic-8648#comment-40705</link>
 <description>&lt;p&gt;am trying to read and display the html file.the below code i have used inside the draw function of view class&lt;br /&gt;
	                                         RFs fs;&lt;br /&gt;
			fs.Connect();&lt;br /&gt;
			RFile file;&lt;br /&gt;
			_LIT(KFileName,&quot;z:\\system\\apps\\sampleprog\\test.html&quot;);&lt;br /&gt;
			file.Open(fs, KFileName, EFileRead);&lt;br /&gt;
			TFileText fileText;&lt;br /&gt;
			fileText.Set(file);&lt;/p&gt;

&lt;p&gt;			TBuf&lt;256&gt; lineText;&lt;br /&gt;
			while(fileText.Read(lineText) != KErrEof)&lt;br /&gt;
			{&lt;br /&gt;
			CWindowGc&amp; gc = SystemGc();&lt;br /&gt;
    		                     TRect rect( Rect());&lt;/p&gt;

&lt;p&gt;                           		if (lineText.Length() &gt; 0)&lt;br /&gt;
        	                                           {&lt;br /&gt;
                                                	gc.DrawText(lineText, rect, Rect().Height(), CGraphicsContext::ELeft );&lt;br /&gt;
                                                	 }&lt;br /&gt;
    		                   else&lt;br /&gt;
        	                                        {&lt;br /&gt;
        	                                        gc.Clear( rect );&lt;br /&gt;
        	                                         }&lt;br /&gt;
			&lt;br /&gt;
			file.Close();&lt;br /&gt;
			fs.Close();&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
 am not getting the output.can any one guide me where iam wrong .&lt;/p&gt;</description>
 <pubDate>Tue, 14 Aug 2007 15:02:51 +0200</pubDate>
 <dc:creator>santhosh.ram</dc:creator>
 <guid isPermaLink="false">comment 40705 at http://www.newlc.com</guid>
</item>
<item>
 <title>File, Streams and Stores</title>
 <link>http://www.newlc.com/en/topic-8648</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;&lt;/div&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/en/topic-8648&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/en/topic-8648#comments</comments>
 <category domain="http://www.newlc.com/en/forums/symbian-c">Symbian C++</category>
 <pubDate>Fri, 24 Jun 2005 09:43:54 +0200</pubDate>
 <dc:creator>eric</dc:creator>
 <guid isPermaLink="false">9179 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
