tuntime error '55' file already open

用VB 6 开发 FTP CLIENT 端,当执行到以下语句

     “Open sLocal For Binary Access Read As #1”

时,出现如下错误:

     tun-time error '55' file already open

原因:

    1.你当前所读取的文件确实正在被别的程序使用。

    2.你的程序正在传送或以前传送过0字节的文件,造成 InternetWriteFile(...)不能正常结束。

    3.你传送的文件有脏数据。

解决方法:

   1.关闭已打开,需要被传送的文件。

   2.不传送0字节的文件。

   3.不传还完整的文件。

原文地址:https://www.cnblogs.com/furenjun/p/1754309.html