How to solve this . The process cannot access the file

前端 未结 2 994
渐次进展
渐次进展 2021-01-22 07:05

The process cannot access the file \'F:\\copy back up\\system\\HRM 2-5-2013\\HRM\\HRM\\lanbased.txt\' because it is being used by another process. This is my code in sub main

2条回答
  •  广开言路
    2021-01-22 07:40

    Looks like you need to close your streamReader before opening the new form:

    objReader.Close()
    

    That will free the file.

提交回复
热议问题