<?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 - saving text to file - Comments</title>
 <link>http://www.newlc.com/en/forum/saving-text-file</link>
 <description>Comments for &quot;saving text to file&quot;</description>
 <language>en</language>
<item>
 <title>Re: saving text to file</title>
 <link>http://www.newlc.com/en/forum/saving-text-file#comment-47343</link>
 <description>&lt;p&gt;im getting an error in the line: &lt;br /&gt;
Editor-&gt;aVar.GetText(aVar);&lt;br /&gt;
it says undefined identifier aVar&lt;br /&gt;
its declared in container only and no where else&lt;br /&gt;
i hav also included aVar in the header of container&lt;/p&gt;</description>
 <pubDate>Mon, 07 Jul 2008 08:47:17 +0200</pubDate>
 <dc:creator>vineet.jain</dc:creator>
 <guid isPermaLink="false">comment 47343 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: saving text to file</title>
 <link>http://www.newlc.com/en/forum/saving-text-file#comment-47339</link>
 <description>&lt;p&gt;The editor provides the text as a 16 bit descriptor, so you have to get the text to a TBuf, not TBuf8. Then you need to convert/copy the text to a 8 bit descriptor and write that to the file.&lt;/p&gt;

&lt;p&gt;Also, check the CEikEdwin docs -- there are methods there to write the text to a stream (if you use those) directly from the edwin object.&lt;/p&gt;</description>
 <pubDate>Sun, 06 Jul 2008 09:54:18 +0200</pubDate>
 <dc:creator>Andreas</dc:creator>
 <guid isPermaLink="false">comment 47339 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: saving text to file</title>
 <link>http://www.newlc.com/en/forum/saving-text-file#comment-47335</link>
 <description>&lt;p&gt;i have already seen dat, actually the code which im applying in container is:&lt;br /&gt;
the compiler is not able to identify aVar,.so if u can help&lt;br /&gt;
 TBuf8&lt;200&gt;aVar;&lt;br /&gt;
   	iEditor-&gt;aVar.GetText(aVar);&lt;br /&gt;
	RFile File;&lt;br /&gt;
	RFs iFs;&lt;br /&gt;
	iFs.Connect();&lt;br /&gt;
	File.Replace(iFs,_L(&quot;\C\\Data\\Others\\File.txt&quot;),EFileWrite);&lt;br /&gt;
	File.Write(aVar);&lt;br /&gt;
	File.Close();&lt;br /&gt;
	iFs.Close();		&lt;br /&gt;
    &lt;/p&gt;</description>
 <pubDate>Sat, 05 Jul 2008 15:33:04 +0200</pubDate>
 <dc:creator>vineet.jain</dc:creator>
 <guid isPermaLink="false">comment 47335 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: saving text to file</title>
 <link>http://www.newlc.com/en/forum/saving-text-file#comment-47334</link>
 <description>&lt;p&gt;&lt;a href=&quot;http://wiki.forum.nokia.com/index.php/Reading_and_writing_files&quot;&gt;http://wiki.forum.nokia.com/index.php/Reading_and_writing_files&lt;/a&gt;&lt;br /&gt;
&lt;/p&gt;</description>
 <pubDate>Sat, 05 Jul 2008 15:15:40 +0200</pubDate>
 <dc:creator>N_A</dc:creator>
 <guid isPermaLink="false">comment 47334 at http://www.newlc.com</guid>
</item>
<item>
 <title>saving text to file</title>
 <link>http://www.newlc.com/en/forum/saving-text-file</link>
 <description>&lt;p&gt;hi.., how can i save a text written in text editor to a file. plz help with a code&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/en/forum/saving-text-file&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/en/forum/saving-text-file#comments</comments>
 <category domain="http://www.newlc.com/en/forums/symbian-c">Symbian C++</category>
 <pubDate>Sat, 05 Jul 2008 14:51:24 +0200</pubDate>
 <dc:creator>vineet.jain</dc:creator>
 <guid isPermaLink="false">21363 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
