hello all of you !
i am making a simple form which can create the text file from the database table , for this , i am using this code at the load event of my form so that it can create the files at the load time.
IO.File.Create("C:\Customers.txt")
IO.File.Create("C:\Towns.txt")
IO.File.Create("C:\Products.txt")
this code is working fine , but when i try to write my data in these file then the error come which is
"the process cannot access the file 'c:\towns.txt' because it is used by another process"
i dont know where this file is used by my computer , Please help me in this as i am stuck here , if you have somthing better then this .please tell me
Regards