Ok, just to keep topic order neat, i am posting a new post on this to recap a bit also.
I am looking to search files for strings, ie
Now to my lack of understanding, i only know of
To move the curser up to an items value. But i wish to search at random points throughout the file to find the item strings.
Is there a way to do something like
Notice i am finding the item1 item, and returning its value.
And to my knowlage, once you do that, the curser is now at the end of that line, how would i move the curser to the beginning of the file to find previous items?
And lastly, with getline(), do you have to use a character array? Is it possible to use the string class? Or would i just use the character array and convert it to a string. Thanks!