Beginner question on text processing

2006-12-29 Thread Doran, Harold
I am beginning to use python primarily to organize data into formats needed for input into some statistical packages. I do not have much programming experience outside of LaTeX and R, so some of this is a bit new. I am attempting to write a program that reads in a text file that contains some

Re: Beginner question on text processing

2006-12-29 Thread skip
Harold To illustrate, assume I have a text file, call it test.txt, with Harold the following information: Harold X11 .32 Harold X22 .45 Harold My goal in the python program is to manipulate this file such Harold that a new file would be created that looks like: