Computing.Net > Forums > Programming > C++ overwrite files with set data

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

C++ overwrite files with set data

Reply to Message Icon

Name: tech_bob
Date: March 28, 2004 at 14:12:16 Pacific
OS: xp pro
CPU/Ram: -
Comment:

Hi,

I wrote here a while ago regarding how to overwrite files with a specific extension in a folder and all it's subdirectories.

I wondered if it is possible to do this completely from a C++ app as I'm playing around with them.

It needs to overwrite files with a .txt extension and possibly .ini with the number "100" (for the resetting of print creds) without dquotes.

How can I do this?

Many thanks for any info.



Sponsored Link
Ads by Google

Response Number 1
Name: Chi Happens
Date: March 29, 2004 at 09:45:10 Pacific
Reply:

i think i use the win32apis copyfile and deletefile in conjunction with the findfirstfile, findnextfile, and findclose.

hope this helps

chi


0
Reply to Message Icon

Related Posts

See More


Recursive Search Function adding substracting in vi...



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


Sponsored links

Ads by Google


Results for: C++ overwrite files with set data

editing text file with batch file www.computing.net/answers/programming/editing-text-file-with-batch-file/15231.html

C++ input/output files www.computing.net/answers/programming/c-inputoutput-files/6183.html

i/o ras file with c program www.computing.net/answers/programming/io-ras-file-with-c-program/9579.html