Skip to content

Commit 2560b42

Browse files
committed
fixed data tag
1 parent f33f44b commit 2560b42

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

source/ch8_filehandling.ptx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,11 @@ public class CreateFile {
166166
Let’s take a look at how we can use Python to understand how read file contents in Java. In order to read files generally you iterate through each line in the file and read the line's content. In Java, you read files in a very similar way, however in Java we will use the <c>Scanner</c> class in order to iterate through the lines.
167167
</p>
168168
<p>
169-
Consider <xref ref="file-read-python" text="type-global"/> that reads each line of <xref ref="myfile-read" text="type-global"/> and prints it to the console.
169+
Consider <xref ref="file-read-python" text="type-global"/> that reads each line of <xref ref="listing-myfile-read" text="type-global"/> and prints it to the console.
170170
</p>
171-
<data xml:id="myfile-read">
171+
<data xml:id="listing-myfile-read">
172172
<title>Data file for reading example</title>
173-
<datafile label="myfile-read" filename="myfile.txt" editable="no">
173+
<datafile xml:id= "myfile-read" label="myfile-read" filename="myfile.txt" editable="no">
174174
<pre>
175175
1
176176
2

0 commit comments

Comments
 (0)