Hi!
Hi!
There's three first rows that belong to the same subject. And then
next three rows belong to another subject and so on, to the end of
the file.
Thanks for clarifying, you're input comes in lines, and the lines are
grouped in threes.
What I need to do, is put the three rows tha
What have you tried so far and why hasn't it worked?
We prefer not to just give solutions.
On Thu, Aug 20, 2009 at 1:06 AM, Olli Virta wrote:
> Hi!
>
> Sorry. OK I admit I might have been confusing. Although I got some good
> ideas from the messages. Thanks.
>
> Let me try again:
>
> So I got th
Hi!
Sorry. OK I admit I might have been confusing. Although I got some good
ideas from the messages. Thanks.
Let me try again:
So I got this big textfile. It's full of data from a database. About 200 or
more rows or lines in a textfile.
There's three first rows that belong to the same subject. A
Alan Gauld wrote:
"Olli Virta" wrote
I have a textfile (job.txt) that needs modifying. The structure of
this file
is like this:
AAA1...
BBB1...
CCC1...
AAA2...
BBB2...
CCC2...
etc...
Question is how can I turn this all to a textfile (done.txt) that is
suppose
to look like this:
AAA1...BB
On Wed, Aug 19, 2009 at 5:54 AM, Alan Gauld wrote:
> Lots of ways to do it. The simplest is to read the variables line by line,
> so, in pseudo code:
>
> while infile not empty
> a = f.readline()
> b = f.readline()
> c = f.readline()
> outfile.write("%s,%s,%s" % (a,b,c) )
You will nee
"Olli Virta" wrote
I have a textfile (job.txt) that needs modifying. The structure of this
file
is like this:
AAA1...
BBB1...
CCC1...
AAA2...
BBB2...
CCC2...
etc...
Question is how can I turn this all to a textfile (done.txt) that is
suppose
to look like this:
AAA1...BBB1...CCC1...
AAA2..
Olli Virta escribió:
Hi!
I have a textfile (job.txt) that needs modifying. The structure of
this file is like this:
AAA1...
BBB1...
CCC1...
AAA2...
BBB2...
CCC2...
etc...
Question is how can I turn this all to a textfile (done.txt) that is
suppose to look like this:
AAA1...BBB1...C
Hi!
I have a textfile (job.txt) that needs modifying. The structure of this file
is like this:
AAA1...
BBB1...
CCC1...
AAA2...
BBB2...
CCC2...
etc...
Question is how can I turn this all to a textfile (done.txt) that is suppose
to look like this:
AAA1...BBB1...CCC1...
AAA2...BBB2...CCC2...
etc