Thanks for the tip.
I also found an other way
Dim stream As Stream
stream = File.Create("lijst.txt")
stream.Close()
The problem was that you had to close the file before you could open the streamwriter.
When you use a stream to create a file, you can do this.
I'm having a problem to create a new file.
I use this code to create and use a file.
If Not File.Exists("lijst.txt") Then
File.Create("lijst.txt")
End If
Dim swLijst As StreamWriter = New StreamWriter("lijst.txt")
And then I get this erro :
An unhandled exception of type 'System.IO.IOException' occurred in mscorlib.dll
Additional information: The process cannot access the file "C:\Documents and Settings\sven voet\My Documents\Sven Voet\LeveringIngave\bin\lijst.txt" because it is being used by another process.
Does anyone know how I can close this other proces and make the new file actif?
Thanks
Thanks, I will try it again tomorrow at work. I already tried this, I'll give it another go.
The problem occurs on an NT 4 computer, but works on a 2000 computer.
Could there be another problem?
How do you distribute an assembly?
I have the same problem with interop.sqldmo.dll
This is a file to search all the available servers in your domain.
When I install my application on an other computer I always get an error that that dll is not registered or validated.
How can I solve this problem?