What is the difference between "rb+" and "wb+"?

Viewed 14405

rb+ and wb+ both read from and write to a binary file, so what makes them different?

Is it the order they read and write?

1 Answers

In short

  • rb+ does not create the file from scratch

  • wb+ does create the file from scratch

there are no differences aside that.

Related