|
|
Posted : Sat, 12 January 2008 14:52:48
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
|
|
Marek
|
Posted : Sun, 13 January 2008 18:22:32
Subject :
Re: 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
|