iphone scanning a dat file for data

Posted by Brodie4598 on Stack Overflow See other posts from Stack Overflow or by Brodie4598
Published on 2010-04-09T22:12:21Z Indexed on 2010/04/09 22:13 UTC
Read the original article Hit count: 288

I am trying to remake a program I have made in C# in OBJ-C.In C# I used streamreader to search the data file for the line I am looking for then convert that line into a string that I can work with.

I have looked at NSScanner but I'm not sure if thats quite waht I'm looking for but I'm by no means a cocoa expert.

All I would like to be able to do is have it search a data file for an occurance of a string, then when/if it finds an occurance of that string, it returns the line that string was found on as a string.

Any ideas?

© Stack Overflow or respective owner

Related posts about cocoa-touch

Related posts about objective-c