I transfer file from computer to computer Through a WebService.
After the file was transfer I need to read its size.
When I try to read the file size I get:
The process cannot access the file XXX.XXX because it is being used by another process
What can I do to avoid this error?
i read the file like this:
LocalFileSize = File.Open(TermSendName, FileMode.Open, FileAccess.Read).Length.ToString();
how to close this ?