[Tutor] collecting certain data from a textfile

2009-09-15 Thread Olli Virta
Hi! I got this simple but effective piece of code. It picks certain wanted pieces of data from a textfile based on database records and puts all of them them in a new textfile in certain order. I was wondering, could it be possible to make it otherwise in case that there's much more rows in that t

[Tutor] handling a textfile continued

2009-08-19 Thread Olli Virta
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

[Tutor] handling a textfile

2009-08-19 Thread Olli Virta
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