Steps for running the code

I wrote a few lines...
My program generates a batch file,
Then the batch file loaded through the c++ program and deleted (This meant at least).

Problem is, when my program asking to delete the file
it keeps saying the "file is being used".

I can understand, that I need to create a steps for each
task. How can I do this in steps?

Thanks..
To create the steps, just think of what you are doing/ going to do. You should:

1. Create
2. Open
3. Do stuff
n. Number of steps depending on what your goal is
4. Close
5. Delete

My guess would be that you didn't close the file in your program.
Oh,
I didn't closed the file... and already jumped to conclusions ;)

thanks pal
Topic archived. No new replies allowed.