Path: utzoo!attcan!uunet!sco!brianm From: brianm@sco.COM (Brian Moffet) Newsgroups: comp.sys.amiga Subject: Writing to Floopies on Amiga Message-ID: <4205@scolex.sco.COM> Date: 21 Dec 89 18:58:38 GMT Sender: news@sco.COM Reply-To: brianm@sco.COM (Brian Moffet) Organization: The Santa Cruz Operation, Inc. Lines: 32 Could someone please tell me why doing the following was not implemented: main() { int i; int fd; extern char data[]; extern int data_len; fd = open("df1:", O_WRONLY); if (fd == -1) perror("df1:"), exit( 1 ); for (i = 0; i < data_len; i += 512) if (write(fd, &data[i], 512) == -1) break; } I would like to be able to write raw data to the floppies with out having to go though opening the trackdisk.device. What would be the problem with the trackdisk driver looking at the file being opened ("df1:"), mark the disk as "in use", and then take data in using the file_offset value and byte_count to write directly to the disk? I can use the trackdisk.device, but it seems to be a large amount of coding to deal with floppies without filesystems. They are out there. brian moffet