[Dev-C++] newbie string parsing question
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <wor...@so...> - 2004-08-17 19:30:40
|
Hi all, Thank you in advance for any help that you can offer. I have a text file that has records like this: Firstname Lastname age //seperated by the \t character. I want to run a while loop and parse the record to populate a struct array. I have looked into the getline(string, max, delimiter) function but it needs char[]'s. Since I don't know the length of the string that I need can someone recommend an existing different class function or something? Best regards, Dane |