• You are currently viewing our forum as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to additional post topics, communicate privately with other members (PM), view blogs, respond to polls, upload content, and access many other special features. Registration is fast, simple and absolutely free, so please join our community today! Just click here to register. You should turn your Ad Blocker off for this site or certain features may not work properly. If you have any problems with the registration process or your account login, please contact us by clicking here.

C++

Fluffywolf

Nips away your dignity
Joined
Mar 31, 2009
Messages
9,581
MBTI Type
INTP
Enneagram
9
Instinctual Variant
sp/sx
In the general sense, sure. Depends on the files you need checking.
 

BlueScreen

Fail 2.0
Joined
Nov 8, 2008
Messages
2,668
MBTI Type
YMCA
You may be looking for fopen(). What are you trying to do?

Agree, fopen() is probably the easiest way to check if the files exist (depending if that is all you need). If it returns anything but NULL, it means the file is there. You have to fclose() the files you successfully fopen() during checking also.
 
Top