The CloseFile method flushes the internal client buffers
          and closes the data socket connection to the server. 
         
        Parameters
        
          None. 
         
        Return Value
        
          If the method succeeds, the return value is the server result
          code. If the method fails, the return value is FTP_ERROR. To get
          extended error information, call GetLastError. 
         
        Remarks
        
          If the file is opened for writing, all buffered data is written to
          the server before the socket is closed. This may cause the client to
          block until all of the data can be written. The client application
          should not perform any other action until the method returns. 
         
        Requirements
        
          Minimum Desktop Platform: Windows 7 Service Pack 1 
          Minimum Server Platform: Windows Server 2008 R2 Service Pack 1 
          Header File: cstools11.h 
          Import Library: csftpv11.lib 
         
        See Also
        
          OpenFile, 
          Read, Write 
         
       |