Ruby/File Directory/File position
Материал из Wiki.crossplatform.ru
(Различия между версиями)
				
	
		ViGOur  (Обсуждение | вклад)  м  (1 версия: Импорт выборки материалов по Ruby)  | 
		
Текущая версия на 17:57, 13 сентября 2010
Set position of a file
f = File.open("text.txt") f.pos = 8 puts f.gets puts f.pos
   
Your Position Within a File
f = File.open("text.txt") puts f.pos puts f.gets puts f.pos
