www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/04/07/14:35:47

From: Damian Frank <damianf AT WPI DOT EDU>
Subject: Raw file access question
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Date: Fri, 7 Apr 1995 13:17:18 -0400 (EDT)

(I posted to the list a while back with some problems..well, I'm happy to
say that they've been resolved - by removing Norton Cache 2 from memory.  Go
figure.)

I need to do some raw binary file i/o.  Under UNIX, I'd just use read and
write, which is exactly what I tried to do - and failed.  My file contains
an end-of-file char (0x1a under DOS), and read stops right there, reporting
end-of-file.  At this point, I see no other alternative than going right to
DOS via int21, as I've done in real mode before.  However, it seems like
there should be an easier way.  Is there?

-- 
  ________________   _______________________________________________
 /  Damian Frank  \ / "The price of seeking to force our beliefs on \
|  damianf AT wpi DOT edu | others is that someday they might force their   |
|    WPI CS '97    | beleifs on us."        -- Mario Cuomo           |
 \________________/ \_______________________________________________/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019