Changes

Jump to: navigation, search

OPS435 Python Lab 5

7 bytes removed, 17:24, 4 September 2017
PART 1 - Reading Data From Files
read_data
</source><br>After you have completed accessing data within a file, you should '''close''' the file in order to free up the computer resources. It is useful to first confirm that the file is still open prior to closing it.<br><br>
:#Issue the following object attribute will provide a boolean value to confirm that the file is still open (''true'' indicates closed (true) and ''false'' indicates open):<source lang="python">
f.closed
</source>
13,420
edits

Navigation menu