FtpFileClose

Internet ››
Parent Previous Next

FtpFileClose

Синтаксис

Function FtpFileClose(byval hFile As HINTERNET) As Integer

Описание

Функция закрывает файл, открытый функцией FtpFileOpen

Параметры

hFile - хендл , возвращенный функцией FtpFileOpen

Платформы

Windows

Пример

#Include "window9.bi"
Dim As HINTERNET hOpen,hConnect,hFile
hOpen = InetOpen()
hConnect = FtpConnect(hOpen,"Ftp....","Login","Password")
If hConnect<>0 Then
      hFile = FtpFileOpen(hConnect,"1.txt")
      FtpWriteFile(hFile,@"Test",4)
      FtpFileClose(hFile)
EndIf
InetFreeHandle(hConnect)
InetFreeHandle(hOpen)

Created with the Personal Edition of HelpNDoc: Single source CHM, PDF, DOC and HTML Help creation