Tcl Programming quiz, level Intermediate, question 11
| Question: | To open a file called abc.txt for read, you could use |
| Answer 1: | set fh [open abc.txt r] This was the CORRECT answer |
| Answer 2: | set fh [open abc.txt {EXCL TRUNC}] |
| Answer 3: | set fh [open abc.txt EXCL] |
| Answer 4: | set fh [open abc.txt a] |
| Answer 5: | set fh [open abc.txt a+] |
| Answer 6: | set fh [open abc.txt] |
This was a question from our quiz ... but we have now provided you with
the answer (above) - we prefer to provide you with information rather than to
puzzle you.
|
|