| Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free! |
C++ - Check for file AND folder
|
Original Message
|
Name: chazco
Date: January 10, 2005 at 08:07:09 Pacific
Subject: C++ - Check for file AND folderOS: Windows 98+CPU/Ram: 128MB+ |
Comment: All my C++ applications call a file called: C:\Program Files\CHAZCO\registry.ini to load their settings via an INI class. However, my new application, standalone, no installer, needs to be able to check if the folder C:\Progra~1\CHAZCO exists, and if the file exists, and create them if not. I'm using Visual C++ 6, and the application is an MFC Win32 application. Any help appreciated...
Report Offensive Message For Removal
|
|
Response Number 2
|
Name: chazco
Date: January 10, 2005 at 23:42:18 Pacific
|
Reply: (edit)Yes, it was poorly written. I need to know how to: - Check if the folder C:\Progra~1\CHAZCO exists, create it if not - And how to check if the file REGISTRY.ini exists inside that folder, and create if not (plain text)... Thanks
Report Offensive Follow Up For Removal
|

Post Locked
This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
Go to Programming Forum Home