Computing.Net > Forums > Programming > C++ - Check for file AND folder

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

Reply to Message Icon

Original Message
Name: chazco
Date: January 10, 2005 at 08:07:09 Pacific
Subject: C++ - Check for file AND folder
OS: 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 1
Name: BlueRaja
Date: January 10, 2005 at 16:12:34 Pacific
Reply: (edit)

Uhh..is there anything specific you need help with?

BlueRaja.admin@gmail.com


Report Offensive Follow Up 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








Do you own an iPhone?

Yes
No, but soon
No


View Results

Poll Finishes In 7 Days.
Discuss in The Lounge
Poll History




Data Recovery Software