Skip to content

Commit b4a0293

Browse files
committed
added files to 8.3 and finished 8.2. commiting before updating branch.
1 parent 97e32a3 commit b4a0293

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

source/ch8_filehandling.ptx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,7 @@
124124
<p>
125125
First, lets look at the equivalent Python code:
126126
</p>
127-
<datafile label="my-file-8-2-2" filename="myfile.txt" xml:id= "my-file-8-2-2" editable="yes">
128-
<pre>
129-
empty file
130-
</pre>
131-
</datafile>
127+
132128
<program xml:id="creat-file-exp-2" interactive="activecode" language="python" add-files="my-file-8-2-2">
133129
<code>
134130
filename = "newfile.txt"
@@ -293,7 +289,7 @@
293289
Alternatively, the following code can be used to store the all lines of myfile.txt to one variable:
294290
</p>
295291

296-
<program interactive="activecode" language="java">
292+
<program interactive="activecode" language="java" add-files="my-file">
297293
<code>
298294
import java.io.File;
299295
import java.io.FileNotFoundException;
@@ -345,7 +341,7 @@
345341
And the Java equivalent:
346342
</p>
347343

348-
<program interactive="activecode" language="java">
344+
<program interactive="activecode" language="java" add-files="my-file">
349345
<code>
350346
import java.io.File;
351347
import java.io.FileNotFoundException;

0 commit comments

Comments
 (0)