Hi
i know that if file read in the middle position than give position in integer as a first argument
file.Read(0,readBuf1);
but if i like to want to start read file at the end of the file than what can i do??
Regards,
Tanya
Hi
i know that if file read in the middle position than give position in integer as a first argument
file.Read(0,readBuf1);
but if i like to want to start read file at the end of the file than what can i do??
Regards,
Tanya
use seek function to move cursor to end position by using ESeekEnd ..
there is one question in my mind.. if u start reading from end then you have nothing to read so why you want to start reading from end .. if u r trying to append some test in write mode then it's ok
Hi,
Refer to the Read() variants functions in the RFile Class in the SDK help.
Kiran.
Sorry to all
i done one mistake in query not At READ but at A WRITE time.
Hi,
Following is a code snippet for it:Originally Posted by Tanya
Kiran.Code:_LIT(KWriteData,"TestData"); TBuf8<20> iData; TInt iPos=0; iData.Copy(KWriteData); RFs iFs; iFs.Connect(); RFile iFile; TInt iErr=iFile.Open(iFs,KFileSpec,EFileWrite); if(iErr==KErrNone) { iFile.Seek(ESeekEnd,iPos); iFile.Write(iData); iFile.Close(); } iFs.Close(); //File closed