Ruby/File Directory/putc

Материал из Wiki.crossplatform.ru

(Различия между версиями)
Перейти к: навигация, поиск
м (1 версия: Импорт выборки материалов по Ruby)
 

Текущая версия на 17:57, 13 сентября 2010

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