Sep-01-2020, 03:05 PM
There is no "insertion" mode. There's no way to put something in the middle of a file and have other things rearranged. So "r+" or "r+b" will allow you to seek within the file and overwrite portions.
What is meant by "truncates the file" RE file.open(w+b)?
|
|
Messages In This Thread |
What is meant by "truncates the file" RE file.open(w+b)? - by MysticLord - Sep-01-2020, 10:44 AM
RE: What is meant by "truncates the file" RE file.open(w+b)? - by bowlofred - Sep-01-2020, 03:05 PM
RE: What is meant by "truncates the file" RE file.open(w+b)? - by deanhystad - Sep-01-2020, 03:14 PM
RE: What is meant by "truncates the file" RE file.open(w+b)? - by MysticLord - Sep-01-2020, 07:46 PM
RE: What is meant by "truncates the file" RE file.open(w+b)? - by bowlofred - Sep-01-2020, 08:36 PM
RE: What is meant by "truncates the file" RE file.open(w+b)? - by deanhystad - Sep-01-2020, 08:16 PM
|