read from a file and write in another file
Posted: Wed Oct 28, 2009 4:46 pm
Hello,
What i wanna do is the following: in a text file i have, let's say
12
21
i wanna read from this file and write in another text file, regarding to what i read from the 1st file: i wanna parse every line, and in the output file, in case of:
12
i write
123
132
321
, and regarding to the 2nd line from the input file (21), i write in the same output file:
213
231
321
So, the final output should be:
123
132
312
--
213
231
321
Is it possible to do this?
Regards,
What i wanna do is the following: in a text file i have, let's say
12
21
i wanna read from this file and write in another text file, regarding to what i read from the 1st file: i wanna parse every line, and in the output file, in case of:
12
i write
123
132
321
, and regarding to the 2nd line from the input file (21), i write in the same output file:
213
231
321
So, the final output should be:
123
132
312
--
213
231
321
Is it possible to do this?
Regards,