Changes

Jump to: navigation, search

OPS435 Python Lab 5

142 bytes added, 13:05, 4 September 2017
INVESTIGATION 1: Working with Files
|}
= INVESTIGATION 1: Working with Files =:This first investigation You will cover the ability now learn how to write Python scripts in order to open text files on the system, to read the contentswithin a text file, store to process the contents, and finally to write the processed contents back into a file. This is a These operations are very common practice in programming, and are used extensively in programming. Examples of file operations would include situations such as logging output, logging errors, reading/and creating configuration files, /temporary files, and moreetc.  :Files are accessed through the use of '''file objects, an '''. An '''object ''' is a '''storage location ''' which stores data in the form of '''attributes''' (variables) and '''methods''' (functions). Creating our own objects will be covered later in investigation 3.
== PART 1 - Reading From Files ==
13,420
edits

Navigation menu