Writing multiple files

If I am using the open command in multiple places for multiple files, should each one have its own “APPEND AS 1” “APPEND AS 2” ETC

CLOSE 1
OPEN AI2T$ FOR BINARY APPEND AS 1
//OPEN “file:/usr/HL.csv” FOR BINARY APPEND AS 1
PUT 1, Time$ +","+ DIStatus6$ +","+ STR$ A_2_SCALED_OUTPUT@ +","+ STR$ A_2_RANGE_SP_LOW@ +","+ STR$ A_2_RANGE_SP_HIGH@ +","+ CHR$(13)+ CHR$(10)
CLOSE 1

Hi Lucas,

I just made this code based off some code I found from simon

image

I got this as an output using append as 1 for both of them

image

It doesn’t really look like there’s much of a difference between the two of these. I think that you would just change it to append as 2, if you want to be working on two different files at the same time.

image
image

Thanks for your response Tim, this did fix my problem. at one point of my code there could be a chance for 5 files to potentially write at the same time.

Thanks again!

Welcome! glad I could help Lucas