Check the size of a file using FTP
Hi,
I am using FTP to read a file. Before the transfer I need to check the size of file.
I found the keyword to check the size of file in C. But I want to know how to use it.
ftp command to check the size is --> SIZE
ftpXfer(IPaddr, FtpUser, FtpPass,
"", "SIZE %??", RootDir, FileName,
&ctrlSock, &dataSock);
fileSize read
read(dataSock, ??, ??);
Can you please help me for the usage of this keyword.
Thanks in Advance,
Vipin
|