On Apr 15, Dave Chappell said:
>I open 1 file for reading and another for writing. The script examines each
>line of the file being read and if any of the following words or digits
>matches, skip the line and go to the next. Write everything else to another
>file.
>
>while () {
> next if /(\d5|
D]
> Subject: examining a file line-by-line
>
>
> Is there a more efficient way of approaching this?
>
>
>
> I open 1 file for reading and another for writing. The script
> examines each
> line of the file being read and if any of the following words
> or digits
>
Is there a more efficient way of approaching this?
I open 1 file for reading and another for writing. The script examines each
line of the file being read and if any of the following words or digits
matches, skip the line and go to the next. Write everything else to another
file.
while (