: Can the FTPPutFile command be modified to send a text file in ascii format as : opposed to binary? No, it always does a binary transfer. However, you can convert a file to ASCII before FTP. Here is how 24x7 v2.0 (beta) Dim replace_count, number FileReplaceEx( "sometext.txt", "\n", "\r\n", replace_count) 24x7 v1.x Dim pointer, number Dim buffer, string Dim found, boolean // Read file FileReadAll( "sometext.txt", buffer ) // Replace NL with CR\NL pair Pos( buffer, "\n", 1, pointer) isGreater( pointer, 0, found) LoopWhile( found, ENDLOOP ) Replace( buffer, pointer, 1, "\r\n", buffer ) Pos( buffer, "\n", pointer, pointer) isGreater( pointer, 0, found) ENDLOOP: // Write ASCII file FileSave( "tabtext.txt", buffer )
|