If the user is going to run my executable but specifies differing filenames each time it is run:
e.g., MyProg file1
e.g., MyProg file2
where file1, file2 are text files, how do I handle this? I can handle it using .open("filename") but I'm not sure how to do it otherwise...
Thanks-you.
Every example I've seen involved file stream objects either hardcodes the filename or when writing to file, merely hardcodes the input.
What I'm trying to do is open a pre-existing text file, have the user type in a file name, and save the data from the opened text file into the user-defined...
I use the "Print Screen" button on the keyboard to save a graphic I want to use/share later. I open up clipboard and see the graphic and can save it as a .clp file. I can also save it as a .bmp or .jpg but the file is not recognized by MS Paint or Paint Shop Pro. When I reboot, the...
I've deleted all my temporary internet files and ran a virus check successfully. I have plenty of RAM and HD space. Yet, every time I try to right-click and "Save As" in IE, the browser hangs and I have to force-quit back to windows. This also happens if I try and use the File menu...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.