staub.jean-noel
2007-08-16 08:35:40 UTC
the instruction file.create(path) never frees the ressource!!!
if you try
file create("c:\temp\ok.txt")
file.delete("c:\temp\ok.txt")
the second instruction throws an exection this file is use by an other
process!!!
use:
Dim sw As StreamWriter = File.CreateText("c:\temp\ok.txt")
sw.Close()
File.Delete("c:\temp\ok.txt")
if you try
file create("c:\temp\ok.txt")
file.delete("c:\temp\ok.txt")
the second instruction throws an exection this file is use by an other
process!!!
use:
Dim sw As StreamWriter = File.CreateText("c:\temp\ok.txt")
sw.Close()
File.Delete("c:\temp\ok.txt")