PUTFTP
hello,
I put a script to receive a history table via a csv file via FTP. but the data is overwritten each update, it does not keep the old data.
Here is the script Tag_Upload3:
a$ = "/MMM/eWON_ADM/PT.csv"
b$ = "[$dtHT$ftT$st$et_0$ut$fnPT.csv$flB]"
c$ = "adm:adm@192.168.1.101" PUTFTP a$, b$, c$
I want to keep the old files without overwriting them
THANKS
0
-
Hello Abdelaziz,
Are you grabbing an EBD from one Ewon and sending it to another, or do you want to save it on the same Ewon?Regardless, I would get the file, amend it, and put it back.
Amend it with the "OPEN" command and use the "APPEND" option.What is the reason? Are you making a log over a longer period than the Ewon can store?
Regards,
Bas Dieben0 -
An alternative solution if you want a separate file each time you write the data is to use a dynamic file name.
The link below is for the supplied BASIC example using dynamic file names which includes a timestamp in the file name:
https://developer.ewon.biz/content/planner-entry-dynamic-filename0
Vous devez vous connecter pour laisser un commentaire.
Commentaires
2 commentaires