Home
Ruby
ActiveRecord
Array
CGI
Class
Collections
Database
Date
Design Patterns
Development
File Directory
GUI
Hash
Language Basics
Method
Network
Number
Rails
Range
Reflection
Statement
String
Threads
Time
Tk
Unit Test
Windows Platform
XML
Set position of a file : File position « File Directory « Ruby
Ruby
File Directory
File position
Set position of a file
f = File.open(
"text.txt"
) f.pos = 8 puts f.gets puts f.pos
Related examples in the same category
1.
Your Position Within a File