Hey, Im just wondering if there is a fuction that already exists which finds a character in a string and then ignores everything after it. Its reading in a whole line from a text file and then suppose to seperate it.
char myString[500];
indata.getline(myString, 500, '\n');
the text file just contains 2 random strings, then maybe a # followed by some more characters on each line like
32fe3w2in o3n4i # o
3242123in o3n4i
3123in o3n4i # 1233
I am using strtok to seperate the to first strings by spaces, but then dont know how i would get it to find the # and ignore everything after it untill it hits a new line charcter, also how would i do this if not every line contains a #