i am trying to read from file using RFilReadStream and getting system error -25
i have attached the file that i want to read.
and the code that i used to read it till end string by string is this
i am able to read first two strings and i am getting error in third iterationCode:RFs aFs; aFs.Connect(); RFileReadStream StartCameraStream; TInt fSize; User::LeaveIfError(StartCameraStream.Open(aFs,_L("C:\\Data\\StartCamera.txt"), EFileRead )); StartCameraStream.PushL(); TStreamPos eofPos(StartCameraStream.Source()->SizeL()); // Get the current position of file pointer. TStreamPos currentPos(0); // Read all TInt2’s until EOF. while (currentPos < eofPos) { TBuf<2000> value; StartCameraStream >> value; ShowMessage(value); /*aArray.Append(value);*/ currentPos = StartCameraStream.Source()->TellL(MStreamBuf::ERead); } StartCameraStream.Close(); StartCameraStream.Pop();
please help


Reply With Quote

