Yes, C++ can do the trick. If you were paying attention to what Bruce Mac said, typing “attrib /?” without the quotes on a dos window will give you the possible switches for modifying the file attributes. Thus, after creating an output file (e.g)
ofstream out_stream("tes t.txt");
Follow it with this line:
system("attrib +h test.txt"); //Set the hidden attribute for test.txt
Or if you want,...
Leave a comment: