puts outputs lines of text, perform the writing equivalents of getc and read with putc and write: : putc « File Directory « Ruby






puts outputs lines of text, perform the writing equivalents of getc and read with putc and write:


f = File.open("text.txt", "r+")
f.putc "X"
f.close

 

Related examples in the same category