Topic Path: Symbol Reference > Classes > TIdIOHandlerSocket Class > TIdIOHandlerSocket Methods > WriteFile Method
ContentsIndexHome
PreviousUpNext
TIdIOHandlerSocket.WriteFile Method

Write the contents of a file to the IOHandler connection.

function WriteFile(
    const AFile: String; 
    AEnableTransferFile: Boolean = False
): Int64; override;
Parameters 
Description 
AFile 
File name to write to the IOHandler.
 
AEnableTransferFile 
Indicates the optimized filew transfer is enabled for the platform. 

Cardinal - Size of the specified file on the local file system.

WriteFile is an overridden Cardinal function used to write the contents of the file specified in AFile to the socket-based IOHandler. 

WriteFile calls the inherited WriteFile method to copy the contents of the file to the IOHandler. 

The return value for the method is the size of the specified file on the local file system.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.