From: 7stud -- Date: 2011-04-23T03:49:04+09:00 Subject: Re: Binary file: SAT Alessandro Barracco wrote in post #994473: >> Do not think of binary files as containing lines. A binary file is a >> long continuous sequence of integers contained in a varying number of >> bytes. > > That's OK. but the file I need to parse is a special txt file (DXF > format) that consist of couple-of-line: Binary files do not have lines. Until you can understand that, you cannot proceed. Binary files consist of blocks of bytes. Each block contains some data. Each block consists of a different number of bytes. -- Posted via http://www.ruby-forum.com/.