H
H
Now, I'm here with another newbie question ....
I want to read a text file, string by string (to do some things with some
words etc etc), but I can't seem to find a way to do this String by String.
Is there anyway, like String s = something.ReadString() ?
Or what may be a fine way to do this ? Only thing I can some up with is to
read 1 char at a time, and look if the next char is a space-sign, and that
way "make" the Strings myself. but this isn't exactly an efficient way. The
other way I can think of is to read from the file, line by line into a
String, and then if there is some smart way to distinguish separate words in
a string, and then do what should be done on them that way. but this way is
also very clumsy, and syupid if there are lots and ots of Strings that
should be tampered with.
So, whats a clever way of doing this ?
TIA
I want to read a text file, string by string (to do some things with some
words etc etc), but I can't seem to find a way to do this String by String.
Is there anyway, like String s = something.ReadString() ?
Or what may be a fine way to do this ? Only thing I can some up with is to
read 1 char at a time, and look if the next char is a space-sign, and that
way "make" the Strings myself. but this isn't exactly an efficient way. The
other way I can think of is to read from the file, line by line into a
String, and then if there is some smart way to distinguish separate words in
a string, and then do what should be done on them that way. but this way is
also very clumsy, and syupid if there are lots and ots of Strings that
should be tampered with.
So, whats a clever way of doing this ?
TIA