(Apr-02-2019, 07:21 AM)sritaa Wrote: Read Only ('r') : Open text file for reading. ...Thanks. I know that - been using unix for 24 years. I originally meant to append the info to the file (but forgot that there was no newline in it so the append just added numbers to the same line. However, I figured out I dodn't need more than one piece of information and forgot to change the append to a write.
Read and Write ('r+') : Open the file for reading and writing. ...
Write Only ('w') : Open the file for writing. ...
Write and Read ('w+') : Open the file for reading and writing. ...
Append Only ('a') : Open the file for writing
Append and Read (‘a+’) : Open the file for reading and writing.
REDACTED
Writing integer to file
Messages In This Thread |
Writing integer to file - by jpezz - Apr-02-2019, 01:57 AM
RE: Writing integer to file - by Larz60+ - Apr-02-2019, 02:37 AM
RE: Writing integer to file - by jpezz - Apr-02-2019, 04:38 AM
RE: Writing integer to file - by Larz60+ - Apr-02-2019, 09:06 AM
|
Users browsing this thread: 2 Guest(s)