I am building a routine that gets an order number from a text file on a server through FTP, increments that order number then saves the new, incremented order number back to the file.
I am stuck on the saving part. Here is my basic code. It gets the correct data out of the file, increments it but how do I put the new order number back?
Code: Select all
put "ftp://"&" UNAME "&" : "&" PW "&"@"&" IP "&"/test/System Numbers" into tFolder
put (tFolder & "/" & sPoint) into nFile
put url nFile into tNumber
add 1 to tNumber
put (sCode & tNumber) into line 1 of url nFile
http://forums.livecode.com/viewtopic.ph ... FTP#p60212