Skip to content

Commit 263d33a

Browse files
committed
Changed files causing merge conflict
1 parent 9bb391b commit 263d33a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pretext/Files/intro-WorkingwithDataFiles.ptx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<title>Working with Data Files</title>
44
<p>So far, the data we have used in this book have all been either coded right into the program, or have been entered by the user. In real life data reside in files. For example the images we worked with in the image processing unit ultimately live in files on your hard drive. Web pages, and word processing documents, and music are other examples of data that live in files. In this short chapter we will introduce the Python concepts necessary to use data from files in our programs.</p>
55
<p>For our purposes, we will assume that our data files are text files&#x2013;that is, files filled with characters. The Python programs that you write are stored as text files. We can create these files in any of a number of ways. For example, we could use a text editor to type in and save the data. We could also download the data from a website and then save it in a file. Regardless of how the file is created, Python will allow us to manipulate the contents.</p>
6-
<p>In Python, we must <term>open</term> files before we can use them and <term>close</term> them when we are done with them. As you might expect, once a file is opened it becomes a Python object just like all other data. <xref ref="files_filemethods1a"/> shows the functions and methods that can be used to open and close files.</p>
7-
<table xml:id="files_filemethods1a">
6+
<p>In Python, we must <term>open</term> files before we can use them and <term>close</term> them when we are done with them. As you might expect, once a file is opened it becomes a Python object just like all other data. <xref ref="files_files_filemethods1a"/> shows the functions and methods that can be used to open and close files.</p>
7+
<table xml:id="files_files_filemethods1a">
88
<tabular>
99
<row header="yes">
1010
<cell>

0 commit comments

Comments
 (0)