Click here to Skip to main content
15,900,108 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I have a folder contains some file are available. In that file some are opened for these files how can i close these open files.Please let me know.
Posted
Comments
Richard MacCutchan 20-Feb-13 8:58am    
What do you mean by "open"? If you have opened them in your code then you can also close them.
Sandeep Mewara 20-Feb-13 9:16am    
This is not a well framed question! We cannot work out what you are trying to do/ask from the post. Please elaborate and be specific.
Use the "Improve question" link to edit your question and provide better information.
ZurdoDev 20-Feb-13 10:35am    
Are they open by a user or by you? What are you trying to do?
José Amílcar Casimiro 20-Feb-13 17:33pm    
very ambiguous question, please rephrase. thank you

1 solution

If the file was opened by you, and assuming you use a variable named "myFile", then you should use the following code:

C#
myFile.Close();
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900