Alright, i've got a couple problems to work out. I'm writing a section of a program that requires it to back up data stored in arrays within the program. So what i'm trying to do is create a seperate directory elsewhere on the harddrive that will contain the backed up files.
I need 2 things:
1. I need to be able to open the files within that directory
2. I need the date the back up file was created in the filename
I'll tackle number one first...
I tried simply doing
and it doesn't like having that whole address in there. Is there some way to change the current directory or somehow tell it to open a file that is not in the same directory as the program itself?
and problem number two...
I want to create a text file in the above directory in which to outFile the data to, but i want the date it was backed up in the file name (even if it's like this: 07072008)
How do i go about doing that?
The second problem to get the backup date into the file name, use a string object and build the date into the string. Then open the file using the string object.