Re: Read block of file in Tcl
Thanks Arjen.
This is what I wanted
while {gets $filename line}
{
if $line=Name1
{
read the file till $line=Row4
}
if $line=Row1
{
read the file till $line=Row4
}
}
But, how can the step "read the file till $line=Row4" be achieved in
an optimal way.
And how will the file reading opeartion by the main while loop continue
after Row4 is found?
.
Relevant Pages
- Re: Generating filenames
... > I wrote a program that does a simulation in function of a parameter. ... > I'd like to ask you if there's a way to generate a filename for each ... > step of the loop, so I can store the results. ... Prev by Date: ... (comp.lang.fortran) - For loop with letters
... Does anyone know how to make a do loop with letters? ... For (filename = A to Z) ... Prev by Date: ... (microsoft.public.excel.programming) - Re: Reading a file with StreamReader and displaying its contents
... you can modify your do while loop a bit ... filename = strInput.ReadLine ... Rahul Arora ... Prev by Date: ... (microsoft.public.dotnet.framework.adonet) - filenames with spaces and list in a for loop
... Second attempt was to double quote the "`ls -1A $1`", which generates ONE huge argument to the for loop. ... Unfortunately, the list also generates a newline every 80 characters in the $LIST, so once in a while I was left with each_item being set to something like "\nfilename". ... At the first occurrence of $each_item in the function I would get something like <filename> not found. ... what if I have a directory with more than 65000 characters worth? ... (comp.unix.shell) - Re: long running perl programs & memory untilization
... >> It does setup stuff, and then goes into a loop. ... # reads in temporary capture file adds timestamp, ... # Argument 1 is filename that the labled image should be stored as ... my $grab = $_; ... (comp.lang.perl.misc) |
|