Environment versions
Network:
Windows 2008 Server
Hello Michel;
Thanks a lot for your reply.
I´m a little confuse.
Could you give me hand to apply your recomendation to my script?
My script
Using sr As StreamReader = txtfile.OpenText
File.AppendAllText(Path.Combine(topDir.FullName, curFilename), sr.ReadToEnd, Encoding.Default)
End Using
Your script
Using loFileStream As System.IO.FileStream = New FileStream(lcFile, FileMode.Create)
loStreamWriter = New StreamWriter(loFileStream, cEncoding)
loStreamWriter.Write(cString)
loStreamWriter.Close()
End Using
Thanks a lot
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only