Read-only archive of the All About Symbian forum (2001–2013) · About this archive

how to read these lines properly from a file? plz help,

1 replies · 2,605 views · Started 02 March 2003

hello,

can you help me plz, i've been using the whole file apis! file streams, client server files etc.,

for instance i have this defined in text.txt

20 FirstName1 FamilyName1
5 FirstName2 FamilyName2
30 FamilyName2

i'd like to read 20 as an int, so i could increment it, then FirstName and/or familyname as a whole TBuf so i could compare it to other TBuf

pls provide some codes, i've been really using RFile, RFileReadStream and
yes especially RfileReadStream::ReadL() specifying my own character delim but how exatly is that used??

ie, RFileReadStream::ReadL(a_TBuf, '\n'😉 // this won't work at all!

thanks a lot for your time,