RFs fs;
RFile iFile;
User::LeaveIfError(fs.Connect());
iFile.Open(fs,KFilename,EFileRead|EFileShareAny);
TFileText lineRead;
lineRead.Set(iFile);
lineRead.Seek(ESeekStart);
TBuf<256> temp;
lineRead.Read(temp);
......
lineRead.Read(temp);
......
iFile.Close;
fs.Close;
///////////////////////////////////////
RFs fs;
fs.Connect();
RFile file;
_LIT(KFilename,"c:\\weather.xml");
// if(BaflUtils::FileExists(fs,KFilename))
// {
// file.Replace(fs,KFilename,EFileStreamText|EFileWrite|EFileShareAny);
// }
// else
// {
// file.Create(fs,KFilename,EFileWrite|EFileShareAny);
// }
// file.Write(0,iFeedText);
file.Open(fs,KFilename,EFileRead|EFileShareAny);
file.Read(iFeedText);
file.Close();
fs.Close();