search for: aa1234567890

Displaying 1 result from an estimated 1 matches for "aa1234567890".

Did you mean: a1234567890
2024 May 21
1
wrtiteBin in conjunction with seek : the position in the file is not good when writing
...tion it is written: ? If the connection is open it is read/written from its current position. Thank you Best regards Laurent Here is the tiny example: The file_test.txt before: 1234567890 1234567890 The file_test.txt after: ?AA AA7890 1234567890 The file should have been like that: 123456 AA AA1234567890 ## open the file in read/write mode + binary fname <- file.path(".","txt","file_test.txt") con_in <- file(fname,"r+b") # move on 2 bytes pos <- seek(con_in,2,origin="start") # We have to repeat the command to return the good amount of read...