file input problem
Posted on 1998-02-09
I'm STUCK please help!!!
I'm trying to read in a textual file one sentance at a time, NOT one line at a time.
I know you can read a line in by e.g.
infile.getline(line, LINELENGTH, '\n')
I also know that '\n' can be exchanged for '.' which would partly solve the problem, however how could I get rid in the '\n' characters that are in the middle of the sentance?? When I tried to read in the next sentance???
If possible, If the very first word of each sentance I want to do something else with it as well.