<?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 read and write problem!! - Comments</title>
 <link>http://www.newlc.com/en/topic-16614</link>
 <description>Comments for &quot;File read and write problem!!&quot;</description>
 <language>en</language>
<item>
 <title>Re: File read and write problem!!</title>
 <link>http://www.newlc.com/en/topic-16614#comment-35678</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Ohk....&lt;br /&gt;&lt;br /&gt;Thanx..I got it!&lt;br /&gt;&lt;br /&gt;Regards&lt;/div&gt;</description>
 <pubDate>Tue, 07 Nov 2006 13:02:51 +0100</pubDate>
 <dc:creator>meetee</dc:creator>
 <guid isPermaLink="false">comment 35678 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: File read and write problem!!</title>
 <link>http://www.newlc.com/en/topic-16614#comment-35677</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Hi..&lt;br /&gt;dont use the TDes8 as it is..&lt;br /&gt;you can use a TBuf8 instead.&lt;br /&gt;try this&lt;br /&gt;&lt;div class=&quot;codeheader&quot;&gt;Code:&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;TBuf8&amp;lt;50&amp;gt;aDes;&lt;br /&gt;file.Read(aDes);&lt;/div&gt;&lt;br /&gt;if your file contains some large amount of data,you can use a HBufC8 object instead of Tbuf8.&lt;br /&gt;regards&lt;br /&gt;Badshah&lt;/div&gt;</description>
 <pubDate>Tue, 07 Nov 2006 12:49:25 +0100</pubDate>
 <dc:creator>Badshah</dc:creator>
 <guid isPermaLink="false">comment 35677 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: File read and write problem!!</title>
 <link>http://www.newlc.com/en/topic-16614#comment-35676</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Thanx for reply!!&lt;br /&gt;&lt;br /&gt;but I got the solution for that. The path is same for emulator and real device!&lt;br /&gt;&lt;br /&gt;I have another problem of reading file &lt;img src=&quot;/en/sites/all/modules/smf_filter/smf_smileys/sad.gif&quot; alt=&quot;Sad&quot; border=&quot;0&quot; /&gt; &lt;br /&gt;I tried this&lt;br /&gt;&amp;nbsp;&lt;b&gt;TDes8 *aDes;&lt;br /&gt;&amp;nbsp;file.Read(*aDes);&lt;/b&gt; but not successfull yet!&lt;br /&gt;&lt;br /&gt;I want to store the string of file in one variable. How can I achiece this??&lt;br /&gt;&lt;br /&gt;Kindly help&lt;br /&gt;&lt;br /&gt;Best regards&lt;/div&gt;</description>
 <pubDate>Tue, 07 Nov 2006 12:11:31 +0100</pubDate>
 <dc:creator>meetee</dc:creator>
 <guid isPermaLink="false">comment 35676 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: File read and write problem!!</title>
 <link>http://www.newlc.com/en/topic-16614#comment-35675</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Hi, &lt;br /&gt;you can create a directory using &lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;quoteheader&quot;&gt;Quote&lt;/div&gt;&lt;div class=&quot;quote&quot;&gt;fs.MkDir(_L(&amp;quot;\\system\\apps\\your appname\\&amp;quot;));&lt;/div&gt;&lt;br /&gt;and your file path should be &lt;br /&gt;&lt;div class=&quot;quoteheader&quot;&gt;Quote&lt;/div&gt;&lt;div class=&quot;quote&quot;&gt;_LIT(KFileName, &amp;quot;\\system\\apps\\your appname\\test.txt&amp;quot;);&lt;/div&gt;&lt;br /&gt;hope this help you&lt;br /&gt;rgrds&lt;br /&gt;Badshah&lt;/div&gt;</description>
 <pubDate>Tue, 07 Nov 2006 07:36:41 +0100</pubDate>
 <dc:creator>Badshah</dc:creator>
 <guid isPermaLink="false">comment 35675 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: File read and write problem!!</title>
 <link>http://www.newlc.com/en/topic-16614#comment-35674</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;I able to write text into file by using this code&lt;br /&gt;&lt;div class=&quot;quoteheader&quot;&gt;Quote&lt;/div&gt;&lt;div class=&quot;quote&quot;&gt;_LIT(KFileName, &amp;quot;c:\\test.txt&amp;quot;);&lt;br /&gt;_LIT8(KData, &amp;quot;A1=12345&amp;amp;&amp;quot;);&lt;br /&gt;&lt;br /&gt;//...&lt;br /&gt;&lt;br /&gt;RFs fs;&lt;br /&gt;fs.Connect();&lt;br /&gt;CleanupClosePushL(fs);&lt;br /&gt;&lt;br /&gt;RFile file;&lt;br /&gt;TInt err = file.Open(fs, KFileName, EFileShareAny | EFileWrite);&lt;br /&gt;if(err != KErrNone)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;err = file.Create(fs, KFileName, EFileShareAny | EFileWrite);&lt;br /&gt;}&lt;br /&gt;if (!err)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;CleanupClosePushL(file);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;User::LeaveIfError(file.Write(KData));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;CleanupStack::PopAndDestroy(); // file&lt;br /&gt;}&lt;br /&gt;CleanupStack::PopAndDestroy(); // fs&lt;br /&gt;&lt;/div&gt; &lt;br /&gt;but that comes in winscw\c path. (as I use 7.0 and 2nd sdk) I also did armi build but no such file is created in another folder. &lt;br /&gt;&lt;br /&gt;So what should be done to create file in real device. I mean what should be the path for that. (currently my path is _LIT(KFileName, &amp;quot;c:\\test.txt&amp;quot;); )&lt;br /&gt;&lt;br /&gt;Regards&lt;br /&gt;&lt;/div&gt;</description>
 <pubDate>Tue, 07 Nov 2006 07:26:14 +0100</pubDate>
 <dc:creator>meetee</dc:creator>
 <guid isPermaLink="false">comment 35674 at http://www.newlc.com</guid>
</item>
<item>
 <title>File read and write problem!!</title>
 <link>http://www.newlc.com/en/topic-16614</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-16614&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/en/topic-16614#comments</comments>
 <category domain="http://www.newlc.com/en/forums/symbian-c">Symbian C++</category>
 <pubDate>Tue, 07 Nov 2006 06:49:25 +0100</pubDate>
 <dc:creator>meetee</dc:creator>
 <guid isPermaLink="false">16241 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
