<?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 - Cannot open, create or replace file ( s60 3rd ed ) - Comments</title>
 <link>http://www.newlc.com/en/topic-17273</link>
 <description>Comments for &quot;Cannot open, create or replace file ( s60 3rd ed )&quot;</description>
 <language>en</language>
<item>
 <title>Re: Cannot open, create or replace file ( s60 3rd ed )</title>
 <link>http://www.newlc.com/en/topic-17273#comment-36728</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Thanks dennis_george, you are absolutely right.&lt;br /&gt;&lt;br /&gt;I realized that the problem was that the diretory dint exist late saturday.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;----&amp;gt; the most stupid lack of understanding takes longest time conquer &amp;lt;----&lt;/div&gt;</description>
 <pubDate>Mon, 08 Jan 2007 10:05:59 +0100</pubDate>
 <dc:creator>bassbuss</dc:creator>
 <guid isPermaLink="false">comment 36728 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Cannot open, create or replace file ( s60 3rd ed )</title>
 <link>http://www.newlc.com/en/topic-17273#comment-36727</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;-12 -&amp;gt; Indicates&amp;nbsp; &amp;quot;path not found&amp;quot;.&lt;br /&gt;&lt;br /&gt;And RFile::Replace wants the directory to be present before creating the file. &lt;br /&gt;&lt;br /&gt;Therefore I suspect that the private directory is not created in your case. By default no private directory is created. You have to copy any file (in case of an installation) in the private folder or you have to manually(or programaticaly) create it.&lt;br /&gt;&lt;br /&gt;In emulator just run your program after creating the directory.&lt;br /&gt;&lt;br /&gt;Cheers&lt;br /&gt;Dennis&lt;/div&gt;</description>
 <pubDate>Mon, 08 Jan 2007 07:33:45 +0100</pubDate>
 <dc:creator>dennis_george</dc:creator>
 <guid isPermaLink="false">comment 36727 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Cannot open, create or replace file ( s60 3rd ed )</title>
 <link>http://www.newlc.com/en/topic-17273#comment-36726</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;HI,&lt;br /&gt;&lt;br /&gt;&amp;nbsp; Check whether the path is correct by printing it...If you have any spelling mistakes in the path you will get the -12 error....&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;peter&lt;/div&gt;</description>
 <pubDate>Mon, 08 Jan 2007 05:38:31 +0100</pubDate>
 <dc:creator>peter</dc:creator>
 <guid isPermaLink="false">comment 36726 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Cannot open, create or replace file ( s60 3rd ed )</title>
 <link>http://www.newlc.com/en/topic-17273#comment-36725</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Thanks eric for your answer.&lt;br /&gt;&lt;br /&gt;Now I try this:&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;codeheader&quot;&gt;Code:&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;RFs iFs;&lt;br /&gt;RFile iFile;&lt;br /&gt;TInt aStatus=0;&lt;br /&gt;&lt;br /&gt;TBuf&amp;lt;256&amp;gt; filepath;&lt;br /&gt;iFs.PrivatePath(filepath);&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //&amp;nbsp; NOTE&lt;br /&gt;filepath.Append(_L(&amp;quot;filename.txt&amp;quot;));&amp;nbsp; &amp;nbsp;// NOTE&lt;br /&gt;&lt;br /&gt;iStatus = iFile.Replace(iFs, filepath, EFileWrite);&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;but &amp;#039;iStatus&amp;#039; still has the value -12 after iFile.Replace(...);&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</description>
 <pubDate>Sat, 06 Jan 2007 20:55:54 +0100</pubDate>
 <dc:creator>bassbuss</dc:creator>
 <guid isPermaLink="false">comment 36725 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Cannot open, create or replace file ( s60 3rd ed )</title>
 <link>http://www.newlc.com/en/topic-17273#comment-36724</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;What is the value of filename ?&lt;br /&gt;(should be the full path to your private directory and the filename)&lt;/div&gt;</description>
 <pubDate>Fri, 05 Jan 2007 16:40:15 +0100</pubDate>
 <dc:creator>eric</dc:creator>
 <guid isPermaLink="false">comment 36724 at http://www.newlc.com</guid>
</item>
<item>
 <title>Cannot open, create or replace file ( s60 3rd ed )</title>
 <link>http://www.newlc.com/en/topic-17273</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-17273&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/en/topic-17273#comments</comments>
 <category domain="http://www.newlc.com/en/forums/symbian-c">Symbian C++</category>
 <pubDate>Fri, 05 Jan 2007 16:24:47 +0100</pubDate>
 <dc:creator>bassbuss</dc:creator>
 <guid isPermaLink="false">16817 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
