Is there a way to find a line in a text file that starts with a forward slash? This is how i find a line in text file that starts with a word and then print that line to another text file:
Expand|Select|Wrap|Line Numbers
- open( FILE, "<$file" );
- open( COPIED_FILE, ">$copiedfile" );
- while( <FILE> )
- {
- $templine = $_;
- if ($templine =~ m/DELTA\//)
- {print COPIED_FILE "$templine";}
- }
- close FILE;
- close COPIED_FILE;
Thanks,
Terra