The Task is to to append data from another file (for ex. "C:\DataToAppend.dat") at the end of the current file.
So this script should do the Task:
// 1. Get Data To Append open "C:\DataToAppend.dat" Copy close
// 2. Seek to the very end of the file... goto GetSize
//3. ...and append data there WriteClipboard
BUT Instead I get an error: "The File don't contain the Offset ...."
The problem is the second task need to seek to the very end of the file by the command 'goto GetSize'. Well 'goto (GetSize-1)' works but will paste data one byte before the end. But a 'move 1' to compensated that and to reach the final EOF is also blocked by Winhex.
Finally
... // 2. Seek to the very end of the file... goto (GetSize-1) Read Buff 1 Write Buff ...
works but it's a not very 'clean' solution.
This is probably due to a so call 'fence post' error or something like that - a matter of '>' or >=' in the source code.
That the current position cannot be moved past the end of the file may be undesirable, but it's not an error in scripting. It's not possible in the user interface either with the blinking cursor (caret). It was suggested before to allow for this, and it's on our To Do list, along with 630 other items.