[b][red]This message was edited by CatBreath at 2005-10-30 16:40:30[/red][/b][hr]
I was wondering if there is (im assuming there is...) a built in cc++ function to search through a text file.
I would like to know its header, name and usage please.
Thanks!
Comments
: I was wondering if there is (im assuming there is...) a built in cc++ function to search through a text file.
: I would like to know its header, name and usage please.
:
: Thanks!
:
:
:
[blue]There is no standard function for this. You need to read a file line by line and scan every line. Or if you do not need to find out on which line number the text is - load the file as a whole, assuming it will fit the memory - put ' ' at the end of file in memory and use strstr() function.[/blue]