| skarla (249) | |||||
This is my source.It works perfect,and in my ftp file a file named "file.txt" is created from this code FtpPutFile(hFtp,szFile,"file.txt",INTERNET_FLAG_TRANSFER_BINARY,0);But i have two questions: 1)With this code
It works,but if i change the char szFile[] = "log"; to char szFile[] = "something else"; It does not work.Why? 2)How i can put something into the file that is created? Thanks... | |||||
|
|
|||||
| ResidentBiscuit (2645) | |
|
http://cplusplus.com/forum/windows/89825/ We already were helping you in this thread? 1) What is "something else"? Why not just create it with the .txt already applied? It looks like a completely unnecessary function call. Anyways, I'm surprised the former works. That should cause a segmentation fault. Try creating an array that is actually big enough to hold what you're looking for, or use std::string. 2) Using file I/O. http://www.cplusplus.com/reference/cstdio/ | |
|
|
|