On 8/8/2010 8:04 AM, nitin chandra wrote:
Hello Everyone,
I am to make a small programme for a friend of mine
where i am to start reading from 14th (string) from a file and then
read every 5th row.
ie.
in 1st read it reads the 14 row in a File, write to an OUTPUT-1 file
Next reads 19th row, write to the OUTPUT-1 file
then 24th row,... so on.
and the second loop does is
reads the 15th line as the first line from same input file and write
to OUTPUT-2 file
next reads 20th line / row, write to the OUTPUT-2 file
I have tried various ways but some how i am ONLY able to do i simple
read from one file and write to another.
Please show us the attempts you have made.
There are 3024 rows / lines PER file
That is irrelevant.
and there are 24 such file I need to run the programme on.
Several unknowns here. Do you process one file at a time? Where does the
output from the other files go?
--
Bob Gailer
919-636-4239
Chapel Hill NC
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor