reading a file to the end regardless of result
- From: "Nospam" <nospam@xxxxxxxx>
- Date: Sun, 15 Jan 2006 16:40:31 GMT
is there a command to continue with a process even if the last line didn't
have the value you were after?
ie if I was reading each line in a file and placing the output on the
console, and I wanted to continue even if there were some whitespaces what
would I have to amend in this prog:
open(file, "file.txt");
while( )
{
my $filevalue = <file>;
print $filevalue;
}
.
- Follow-Ups:
- Re: reading a file to the end regardless of result
- From: Mark Clements
- Re: reading a file to the end regardless of result
- From: Paul Lalli
- Re: reading a file to the end regardless of result
- From: Anno Siegel
- Re: reading a file to the end regardless of result
- Prev by Date: Re: File-Find skips directories with spaces depending on path separator on Windows
- Next by Date: Re: reading a file to the end regardless of result
- Previous by thread: create a hierarchical list from a text file
- Next by thread: Re: reading a file to the end regardless of result
- Index(es):
Relevant Pages
|