From: Matthew Lagace Date: 2007-08-09T04:06:58+09:00 Subject: File parsing Hello, I have a tab delimited file, I have no headers in the file, and one column is the datestamp of the record. Now this datestamp is not in the correct format, I know how to format the datestamp to the way I want, but how do I replace the incorrect datestamp in the file with the new datestamp I have formatted. For e.g.: The datestamp in the file is 2007-12-30 12:32:12, Here is the datestamp that I want to replace it with instead 20071230 How do I replace the old datestamp with my new datestamp in a file? Thanks -- Posted via http://www.ruby-forum.com/.