Linux.com

Author Message
Joined: Jan 12, 2008
Posts: 2
Other Topics
Posted Jan 12, 2008 at 2:52:48 PM
Subject: GCC & Read from floppy
Hello. I need help, and i hope that someone can help me. I'm working under kubuntu in gcc with floppy, why, floppy, well, because i'm courius. With no problem at all i open device with ... #define FLOPPY "/dev/fd0" ... int main() { .... socketfd = open (FLOPPY,O_RDWR); if((sockfd = open(FLOPPY,O_RDWR)) == -1) { perror(ERROR); } ... } but now i can get it, how to read from floppy, i just want/wish to read in console what is on floppy TNx for help
Back to top Profile Email Website
alpinesatan.com
Joined Dec 01, 2007
Posts: 639
Location:London, England

Other Topics
Posted: Jan 12, 2008 7:03:01 PM
Subject: GCC & Read from floppy
you will need you mount the drive first. Kind Regards

OS X 10.4.11 and Ubuntu Gutsy Gibbon 7.10, not forgetting fedora :D

Back to top Profile Email Website MSN
Marek
Joined Jan 12, 2008
Posts: 2

Other Topics
Posted: Jan 13, 2008 6:22:32 PM
Subject: GCC & Read from floppy
But it is mounted. It check my floppy it is mount, it is floppy disk in floppy drive. i just dont know what to use, how use something when i what read from floppy if u understend what i mean. I just want to read and with fprint write out in console what is in floppy. Tnx
Back to top Profile Email Website
Tableless layout Validate XHTML 1.0 Strict Validate CSS Powered by Xaraya