Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
April 3, 2007, 8:56 pm
rate this thread
- Schraalhans Keukenmeester
April 3, 2007, 11:39 pm
Re: Copying a CSV file and changing a column of data
Read in the file contents line by line, explode() the lines using the
comma as the separator string, swap the resulting arrays' first two
cell's contents, join()/implode() the array items in a string with the
comma separator, write them to a new file, unlink the first, rename the
new one, done.
Something like that?