in reply to Perl binary file reading
If it's binary data, it might have a ^D, which indicates the end of a stream of data. That's on Linux .. and I think a ^Z is used for Windows. I'm not positive about either of those, but it's somewhere to start looking.
If this is a file of records, hopefully the records are of a fixed length. If not, that makes things a little more challenging.
Some code would be helpful -- there are many ways to solve this, but we can offer much more useful solutions if we know where you're starting from. PS And please use code tags around the code. :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl binary file reading
by Marshall (Canon) on May 02, 2016 at 22:36 UTC | |
|
Re^2: Perl binary file reading
by afoken (Chancellor) on May 02, 2016 at 20:22 UTC | |
by talexb (Chancellor) on May 02, 2016 at 20:52 UTC |