Skip to content

Commit

Permalink
use temp variable to write the solution to disk
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Razoumov committed Sep 24, 2024
1 parent 6a41eb3 commit 23b7c07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion episodes/22-domains.md
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ We'll add the following to our code to write ASCII:
use IO;
var myFile = open("output.dat", iomode.cw); // open the file for writing
var myWritingChannel = myFile.writer(); // create a writing channel starting at file offset 0
myWritingChannel.write(T); // write the array
myWritingChannel.write(temp); // write the array
myWritingChannel.close(); // close the channel
```

Expand Down

0 comments on commit 23b7c07

Please sign in to comment.