Skip to content

Commit 92c7528

Browse files
committed
add listing in text
1 parent 82168db commit 92c7528

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
@@ -73,7 +73,7 @@
7373

7474

7575
<p>
76-
We will now create a <c>File</c> object. It is important to create a meaningful name for the <c>File</c> object. We will call ours <c>myFile</c>, and we will call our class <c>CreateFileObject</c>.
76+
We will now create a <c>File</c> object. It is important to create a meaningful name for the <c>File</c> object. We will call ours <c>myFile</c>, and we will call our class <c>CreateFileObject</c>. <xref ref="create-file-object-java" text="text-global"/> shows the code to create a <c>File</c> object in Java.
7777
</p>
7878
<listing xml:id="create-file-object-java">
7979
<program interactive="activecode" language="java" add-files="myfile-created">
@@ -104,7 +104,7 @@ public class CreateFile {
104104
</p>
105105

106106
<p>
107-
First, lets look at the equivalent Python code:
107+
<xref ref="create-file-python" text="text-global"/> shows the equivalent code to create a file in Python.
108108
</p>
109109
<listing xml:id="create-file-python">
110110
<program interactive="activecode" language="python">
@@ -124,7 +124,7 @@ public class CreateFile {
124124
</listing>
125125

126126
<p>
127-
Now, let's look at Java code that accomplishes the same task:
127+
<xref ref="create-file-java" text="text-global"/> shows the equivalent code to create a file in Java.
128128
</p>
129129
<listing xml:id="create-file-java">
130130
<program interactive="activecode" language="java">

0 commit comments

Comments
 (0)