move file pointer to specofic location
Posted: Tue Oct 28, 2003 7:47 am
Hello all,
I need to process a small part out of a big file.
I thought first to transform the file into an array using file()
after that I need to look for a specific string (it's a substring actually) in that file array that will indicate the location which the processing should begin.
in_array() is not helpful because as I mentoined it is a substring and in_array will return false and won't give the index as well.
maybe there is another way by reading it directly from the file but then I need to move the pointer top the specified location.
any ideas that can help me?
Thanks
I need to process a small part out of a big file.
I thought first to transform the file into an array using file()
after that I need to look for a specific string (it's a substring actually) in that file array that will indicate the location which the processing should begin.
in_array() is not helpful because as I mentoined it is a substring and in_array will return false and won't give the index as well.
maybe there is another way by reading it directly from the file but then I need to move the pointer top the specified location.
any ideas that can help me?
Thanks