Search within a fixed width text file?

Read each line in turn and search within it with strpos by passing in the $offset parameter to start the search from your column. Then check the return value and ignore a "successful" search if it actually found the result in another column (knowing the width of the target column reduces this to an integer comparison).

Read each line in turn and search within it with strpos by passing in the $offset parameter to start the search from your column. Then check the return value and ignore a "successful" search if it actually found the result in another column (knowing the width of the target column reduces this to an integer comparison). Alternatively, you might substr the target column from each line and search only within that, in which case you do perform a possibly needless string operation but on the other hand you cut down on the length of the string to be searched (and there's no need to check if the result was found in another column).

In your shoes, I 'd benchmark it a bit before deciding which approach to take.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions