Skip to content

Instantly share code, notes, and snippets.

@cmhobbs
Created September 10, 2010 04:25
Show Gist options
  • Save cmhobbs/573094 to your computer and use it in GitHub Desktop.
Save cmhobbs/573094 to your computer and use it in GitHub Desktop.
file = File.open(path, 'r')
send_data "#{path}>"
file.each_line {|line| send_data line}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment