- May
- 13,828
- 211
Maybe everyone else knew that but I didn't. I just lost a good one testing
as a means of preventing another instance of TCC from running a BTM.
I know the behavior isn't going to change since it has been around since shortly after the big bang (at least back to 4NTv8). But isn't it a bit harsh?
The help says "To open a file for both reading and writing, open it in append mode". But what if I don't want to read ... I only want to write, say change one character at a known location.
As it is, @FILEOPEN's distinction between "write" and "append" is not what most would expect it to be.
I doubt it would have helped me but the help should say LOUDLY that the W(rite) option causes the file to be emptied.
Code:
SET h=%@FILEOPEN[%0,w,t]
I know the behavior isn't going to change since it has been around since shortly after the big bang (at least back to 4NTv8). But isn't it a bit harsh?
The help says "To open a file for both reading and writing, open it in append mode". But what if I don't want to read ... I only want to write, say change one character at a known location.
As it is, @FILEOPEN's distinction between "write" and "append" is not what most would expect it to be.
I doubt it would have helped me but the help should say LOUDLY that the W(rite) option causes the file to be emptied.