G
Guest
Hello everybody, i need your help : i have to write some lines coming from a
database into a textfile;
Everything goes right while the filesize is quite small or medium; But it's
different when the file becomes a bit large, as it returns the following
error :
"The process cannot access the file because it is being used"
As my scripts were written in powershell using the function Add-Content, i
though it would be resolved by using the dotnet functions, building and
using StreamWriters or such possibilities...
but no way;
Actually, i thing the process of writing the stream into the textfile become
to slow when the filesize is big, and the following data are coming before
the first are on te file.
i don't know how to resolve my problem; is it possible to wait for the first
process to be finished before writing the new data into the file ?
Thx
Nico
database into a textfile;
Everything goes right while the filesize is quite small or medium; But it's
different when the file becomes a bit large, as it returns the following
error :
"The process cannot access the file because it is being used"
As my scripts were written in powershell using the function Add-Content, i
though it would be resolved by using the dotnet functions, building and
using StreamWriters or such possibilities...
but no way;
Actually, i thing the process of writing the stream into the textfile become
to slow when the filesize is big, and the following data are coming before
the first are on te file.
i don't know how to resolve my problem; is it possible to wait for the first
process to be finished before writing the new data into the file ?
Thx
Nico