Ruby/File Directory/putc

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

Версия от 17:10, 26 мая 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