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
Menu
File read 500 bytes : Binary File « File Directory « Ruby
Ruby
File Directory
Binary File
File read 500 bytes
f = open(
'binary'
) f.read(500) f.pos f.eof? f.close
Related examples in the same category
1.
Processing a Binary File
2.
Read a binary file by byte
3.
Read one byte from a binary file
4.
Move file position
5.
Seek by position
6.
Open a binary file with rb+