Ego question

I have been trying to make sense of Peach Pellen’s Ego, but there are just two bits I don’t understand. What does “w+” and “*a” mean? [import]uid: 116264 topic_id: 24888 reply_id: 324888[/import]

w+ means open the file for write, but instead of writing over the file, append the data to the end of the file.

*a I think means read the whole file in at once.
[import]uid: 19626 topic_id: 24888 reply_id: 101010[/import]

Thanks, that makes sense. I’m guessing then that “r” means open the file to read, and “w” means write the file ? [import]uid: 116264 topic_id: 24888 reply_id: 101014[/import]

@willjhoward:

“r” means open the file for reading
“rb” means open the file for reading in binary mode

“w” means open the file for writing
“wb” means open the file for writing in binary mode [import]uid: 84637 topic_id: 24888 reply_id: 102736[/import]

Am I the only one feeling the urge to poke a little fun at Peach over the wording of the question? Just me?

Sorry Peach! It’s all part of being a Corona celebrity. lol [import]uid: 56820 topic_id: 24888 reply_id: 102925[/import]

Here is a listing+explanation of the file permissions options:
http://www.lua.org/manual/5.1/manual.html#pdf-io.open [import]uid: 134101 topic_id: 24888 reply_id: 102927[/import]