Fravia's TOOLS OF OUR TRADE Messageboard ~ Moderated
Re: How to BPX filedeletion in WIN16 application?
Saturday, 24-Apr-99 08:10:11

Dos type file delete
bpint 21 if ah==41
dx points to path/name (asciiz string)
Other values for ah:
3c create file (dx points to path/name)
ax returns handle no.
3d open file (dx points to path/name)
al is the access code
ie 0 = read only
1 = write only
2 = read/write
ax returns handle no.
3e close file (bx has the handle)
3f read using handle (bx has the handle)
cx = # of bytes to read
dx = buffer for read bytes
40 write (bx has handle)
cx = # of bytes to write
dx = buffer for write data

This should be enough to get some results.

xavax