DISK I/O
Write a single byte to a file
Try :
WRITE FILE #1, @singleByte,1:' it writes the single byte to disk.
try:
print #1, chr$(byte);
What's even better is to make a pointer the size of your file, poke everything you need into a pointer, and write the entire pointer to disk. That is if you're writing a program to make your own file type compatible with other formats.
|