unistd functions in MSWin ?

A

Al-Burak

I hava a library based on unistd, and functions like access(...) are
not found in the C library. I use this function to test if a file
exists, is there a function simmilar in 'C' or WIN32 to do this and
where can I find more information about it.

TIA
 
D

deane_gavin

Al-Burak said:
I hava a library based on unistd, and functions like access(...) are
not found in the C library. I use this function to test if a file
exists, is there a function simmilar in 'C' or WIN32 to do this and
where can I find more information about it.

TIA

Does boost::filesystem do what you want? For example

http://www.boost.org/libs/filesystem/doc/index.htm
http://www.boost.org/libs/filesystem/doc/operations.htm#exists

If you want a platform-specific solution using the WIN32 API then you
probably want one of the Windows groups suggested here:

http://www.parashift.com/c++-faq-lite/how-to-post.html#faq-5.9

Gavin Deane
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top