you can understand in this way: The file name here is where you save your work. ( you use close() to save your file ) So it doesn't matter the file has data inside or not. ONLY the data in the handle will write to your file. ie. This ">" is an overwrite, if you are opening an existed file So, since you are open a file for WRITE, so it couldn't READ, while you read nothing, so you write nothing. End up, you harvest an empty file
In reply to Re^2: opening file for editing
by exilepanda
in thread opening file for editing
by ramprasad27
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |