LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   handling devices (https://www.linuxquestions.org/questions/linux-general-1/handling-devices-18990/)

sajanjohn 04-20-2002 01:02 PM

handling devices
 
hey im so new to linux , any body can explain me how i can direcly control my devices like cd-rome and floppy using a c++ or java.

zmedico 04-20-2002 02:18 PM

If your new, you need read some Guides and HOWTOs from the Linux Documentation Project:

http://www.tldp.org/

In linux, all disk drives are known as "block devices" because they work with blocks of data. In C++ and Java you will access files using either input/output streams or random access. As long as you access your drives using mounted filesystems, you can treat all "block devices" in essentially the same ways.

In order to get your filesystems mounted automatically, you may need to edit your /etc/fstab file. For more info, you can type this the terminal:

man fstab





All times are GMT -5. The time now is 07:10 PM.