Skip to content

Instantly share code, notes, and snippets.

Created November 18, 2015 18:24
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 anonymous/a65768d9d692b90ba9bb to your computer and use it in GitHub Desktop.
Save anonymous/a65768d9d692b90ba9bb to your computer and use it in GitHub Desktop.
with thos code
f = File.new("/usr/local/sbin/forgedfile", File::CREAT|File::RDWR, 0700)
f.write, <<MY_DIARY
here
my severals
lines text
MY_DIARY
f.close
i get the error message :
3: syntax error, unexpected '\n', expecting tCOLON2 or '[' or '.'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment