Skip to content

Instantly share code, notes, and snippets.

@kell05
Created June 27, 2012 15:09
Show Gist options
  • Save kell05/3004689 to your computer and use it in GitHub Desktop.
Save kell05/3004689 to your computer and use it in GitHub Desktop.
Delimit file
File.open('data.txt','r') do |f|
data = f.read
puts data.gsub(/(.+)\n/){$1+"\t"}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment