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. :)
In reply to Re: Perl binary file reading
by talexb
in thread Perl binary file reading
by kepler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |