shj@login.dkuug.dk (Stig Jacobsen) (05/20/91)
Does anyone know how to open a file in binary mode under MS-Dos? The usual, open(HANDLE, "file"); .. opens the file in text mode, so my read's fail after having encountered a ctrl-z in a binary file.. I'm using MS-Perl 3.0pl41. -- Stig Jacobsen shj@login.dkuug.dk / sysadm
rearl@watnxt3.ucr.edu (Robert Earl) (05/20/91)
In article <shj.674674084@dkuugin> shj@login.dkuug.dk (Stig Jacobsen) writes: | Does anyone know how to open a file in binary mode under MS-Dos? | The usual, | | open(HANDLE, "file"); | | .. opens the file in text mode, so my read's fail after having | encountered a ctrl-z in a binary file.. | | I'm using MS-Perl 3.0pl41. binmode(HANDLE) after opening it, but *before* doing any operations (input, output, seek?) on it. -- ______________________________________________________________________ \ robert earl / "Love is a many splintered thing" rearl@watnxt3.ucr.edu \ --Sisters of Mercy rearl@gnu.ai.mit.edu /