Maybe this has something to do with a wrong calculated number for start-byte? (0-based instead of 1-based!)admin wrote:Both nonsense. I stopped reading further.tiago wrote:Here goes your script but some notes first:
1. SC readfile won't stop if numbytes value exceeds the remaining data to be read, thus generating files which are multiples of numbytes. This issue is fixed in my script.
2.bug warning
SC writefile won't properly write unicode files as it completely loses formating when writing portions which contain unicode text.
If with start-byte = 0 XY ReadFile corrects this to 1, it will read (with values of above script) bytes 1-500.000. The next will request bytes 500.000-999.999, i.e. byte 500.000 is read (and then written) twice.
If I'm right the bug is in the script...
XYplorer Beta Club