Skip to content

Instantly share code, notes, and snippets.

@PrivateGER
Created January 13, 2018 12:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PrivateGER/2bfaa354520d7ae7fe9f732b7d1e8881 to your computer and use it in GitHub Desktop.
Save PrivateGER/2bfaa354520d7ae7fe9f732b7d1e8881 to your computer and use it in GitHub Desktop.
Basic Ruby File I/O
file = File.open("Textfile.txt", "w")
file.puts "Sample Textfile"
file.close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment