<no subject>
<no subject>
- Subject: <no subject>
- From: Ben Mackin <email@hidden>
- Date: Thu, 31 Jan 2002 11:25:15 -0800
I am wondering how I would go about opening a text file and reading in one
word at a time. In C++, it is as simple as:
fstream myFile;
string myString;
myFile.open("mytext.txt", ios::in);
myFile >> myString;
and myString contains that last word from the file, and the cursor is moved
so that when I call myFile >> myString again, it retrievs the next word. How
do I do something like this in Objective-C?
Thanks,
Ben