Hello,
I would like to read a file with TFileText. It works for the first line but after, it reads nothing.
I don't understant why the TFileText doesn't return the write number.Code:RFile filesave; filesave.Open(fsSession, nameFile, EFileRead); TFileText ft; ft.Set(filesave); //Read the first line HBufC* Detail = HBufC::NewL(3); TInt ty = ft.Read(Detail->Des()); //Transform the number TLex conv( Detail->Des() ); conv.Val(nb); //The number is OK //Read the second line HBufC* Detail2 = HBufC::NewL(3); TInt ya = ft.Read(Detail2->Des()); //Transform the number TLex convTemp( Detail2->Des() ); convTemp.Val(nb2); //nb2 is 0 !!!! ...
Please help me.
Thank you,
Bernie

Reply With Quote

