J
JenHu
Hi all,
I want to create a text file to write lines, but it gives me an error
on Dim sw As New StreamWriter(CreatePath & Efilename) :
System.IO.IOException: The process cannot access the file
"C:\temp\DD_01062005.txt" because it is being used by another
process.
Can someone point me out where did I do wrong? Thanks.
------------------------------------------------------------------
Dim CreatePath As String = "C:\temp\"
Dim Efilename As String = "DD_" & Format(Date.Today,
"MMddyyyy").ToString & ".txt"
File.Create(CreatePath & Efilename)
Dim sw As New StreamWriter(CreatePath & Efilename)
*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*
I want to create a text file to write lines, but it gives me an error
on Dim sw As New StreamWriter(CreatePath & Efilename) :
System.IO.IOException: The process cannot access the file
"C:\temp\DD_01062005.txt" because it is being used by another
process.
Can someone point me out where did I do wrong? Thanks.
------------------------------------------------------------------
Dim CreatePath As String = "C:\temp\"
Dim Efilename As String = "DD_" & Format(Date.Today,
"MMddyyyy").ToString & ".txt"
File.Create(CreatePath & Efilename)
Dim sw As New StreamWriter(CreatePath & Efilename)
*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*