What command for read filename in C language coding?

I am currently using QNX4 to write a program in C++ language. May I know which command should i use to read a filename (unknown filename in floppy disk)?

Check opendir()/readdir().

Thank you mario. I have got that with opendir().
However, when I read the data in the file in FD, some of my datas missing, while I did not having the problem if I read from HD.
Does it have another command to copy a file from FD to HD?

You must be doing something wrong, there is nothing special about a floppy. You program should be the same wether the file is coming for local HD, CD-ROM, floppy, NFS etc.