In article <11**********************@e65g2000hsc.googlegroups .com>,
<rx******@yahoo.co.ukwrote:
>I want to create my own filesystem on a flash memory card. How can I
open the card as a raw character device?
filesystems and flash memory cards and raw character devices
are all system-specific, not mentioned by the standard C language.
>On a unix-like system I can just open /dev/hdx as a file and do
whatever I want. How can I achieve the same thing under MS DOS or
Windows 98?
You'd need to ask in a system specific newsgroup. All that
C provides is fopen() with a "b" modifier on the file mode
(to indicate binary). Determining the correct filename to open
(or whatever else needs to be done to get a hook to the device)
is system specific.
--
Is there any thing whereof it may be said, See, this is new? It hath
been already of old time, which was before us. -- Ecclesiastes