opening and closing a file

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I have written a program that creates a file and then I want to open it and
save it.
but after I create it I need to release the file so I can open it.
After I have created it how do I release the control of it.

Cheers Russ
 
Russell said:
I have written a program that creates a file and then I want to open it
and
save it.
but after I create it I need to release the file so I can open it.
After I have created it how do I release the control of it.

When using a 'FileStream' or 'StreamWriter' call its 'Close' method when you
are finished writing the file. If you are using 'FileOpen' to open the
file, call 'FileClose' with the same file number.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top