hello there, i have no idea how to check if a directory in linux already exist, can someone point me an example..pls..thanks

Recommended Answers

All 4 Replies

You can use stat or diropen..
See man pages..

how do i use it?? T_T im new in c++ dude...

how do i use it??

Goto your command prompt and type "man stat" and press enter. Then something will happen and you'll some new information on your screen, now read this. If you still don't understand write here which part didn't you understand n I'll tell you..
If you don't have access to man pages, just google the same words you'll get it.

T_T im new in c++ dude...

So??!! I'll say that's all the more reason to be reading up.. !


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.