NAF

Note that Python allows several files to be open at once, hence the need for file objects. So, a read mode access might look like this: fn = input(“Please enter the file name: ”) fil = open( fn, “r” ) Once the file object is obtained, data may be read from the file. Data can be read character by character or line by line. ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download