R
Richard Schneeman
Hey, i'm trying to open a file, get the first line of the file, delete
that line from the file, and then close the file. Using ruby 1.8.6.
I've tried using
The_File = IO.readlines("public/languages/chinese/practice.txt")
&
The_File = open('public/languages/chinese/practice.txt','r+')
but i can't figure out the correct syntax for how to delete a line in a
file, and then save that file.
that line from the file, and then close the file. Using ruby 1.8.6.
I've tried using
The_File = IO.readlines("public/languages/chinese/practice.txt")
&
The_File = open('public/languages/chinese/practice.txt','r+')
but i can't figure out the correct syntax for how to delete a line in a
file, and then save that file.