skipping to a certain point in a document is more of a binary thing, but with text you can always do this:
Code:
...
std::cin.ignore(10000,'\n'); //ignore one line
...
or set up special characters in your files to denote fields, for example, use '$' to denote prices, so you can use this:
Code:
...
std::cin.ignore(10000,'$'); //ignore everything up to + including the next '$'
...
the result of that file would look something like this:
Code:
BanHammer $120.0 ~CB168
DellComputer $50.0 ~DL189
HomeworkThread $0.10 ~CB666
in that file, the first field is the name of the item, then the price, then the catalog number preceded by a '~'