Author Topic: APPEND  (Read 10256 times)

PHILIP

  • Guest
APPEND
« on: July 09, 2002, 04:48:02 PM »
I HAVE THE FOLLOW FUNTION:

H$=STR$(DATE[3])+"  "+STR$(DATE[2])
PRINT #1 "<APPEND H$.txt>"
PRINT #1  G$;L$
PRINT #1 "</>


I AM TRYING TO AUTO GENERATE A FILE EVERY DAY TO SAVE DATA USING THE H$. IS POSSIBLE THAT? IF SO, WHAT IS THE CORRECT FORMAT?
« Last Edit: December 31, 1969, 04:00:00 PM by 1076562000 »

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re: APPEND
« Reply #1 on: July 10, 2002, 02:57:31 PM »
I think you can try one of the followings:

H$ = "<APPEND "+STR$(DATE[3])+"  "+STR$(DATE[2])+".txt"
PRINT #1 H$

or

PRINT #1 "<APPEND ";H$;".txt>"

or

PRINT #1 "<APPEND "+H$+".txt>"

« Last Edit: December 31, 1969, 04:00:00 PM by 1076562000 »
Email: support@triplc.com
Tel: 1-877-TRI-PLCS