13,420
edits
Changes
→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>