Skip to content

Instantly share code, notes, and snippets.

@Circuit8
Last active September 23, 2016 09:48
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 Circuit8/a567db16c08ce5a63d13c6e3a8714740 to your computer and use it in GitHub Desktop.
Save Circuit8/a567db16c08ce5a63d13c6e3a8714740 to your computer and use it in GitHub Desktop.
fd = IO.sysopen "badger.txt"
stream = IO.new(fd,"w")
# Errno::EINVAL: Invalid argument
# Why is this happening?
f = File.new("badger.txt", "w")
#<File:badger.txt>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment