How would you determine what constitutes a "line" of binary data?
Is it possible to use a text file for which there are designated line endings? Or else, you will have to define markers in the binary data to be able to manipulate the sections you want (even if that is just counting the bytes).
Also try the syntax:
I'm not quite sure, the actual problem wasn't defined. The issue of line endings is relevant, as well as alternate syntax for emptying lines, but it isn't clear what exactly went wrong in the original post.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
If you are on a Mac, you may get unintended effects using file. LC still thinks we are using legacy Macs with CR line endings. I write everything using binfile to avoid that issue. Using file will leave you with CR line endings. Using binfile will leave you with LF line endings.