Question about io.open modes
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Question about io.open modes
- From: Minh Ngo <mkngo87@...>
- Date: 2012年3月20日 23:17:54 -0400
Hello,
I can't quite understand what some of the modes do for io.open as explained in 5.1 manual. Specifically, I'm not sure what "r+", "w+", and "a+" modes do.
For "r+" and "w+", I'm not sure what the word update entails. "a+" mode sounds exactly the same as "a" mode to me,
So from what I understand so far:
"r" --> read only, no writing allowed
"w" --> overwrite file
"a" --> write at the end of the file
the rest --> ?