can u give me da code in "c" to find the contents of floppy...............

Google "msdn FindFirstFile", FindNextFile, FindClose.
For the path, just put the floppy's drive letter first, like "A:\*".

Correct me if I'm wrong, but that isn't ansi-c right?
Anyway, it's platform dependent. But for a Windows system Duoas' solution will work

Correct me if I'm wrong, but that isn't ansi-c right?
Anyway, it's platform dependent. But for a Windows system Duoas' solution will work

True, they are taken from MFC class.

If he were programming on *nix he'd already know to just mount and open "/dev/fd0".
FindFirstFile, et.al. are straight-up Win32 API. :)

can u give me da code in "c"

if you weren't purposely talking like a braindead AOL chatroom luser, i might actually "give u da code".

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.