vscode julia path changed, code to avoid Main.Notebook module context changed
This commit is contained in:
@@ -380,6 +380,7 @@ B = readdlm("data2.txt")
|
||||
In Julia, the `do` notation is frequently utilized for file handling (see @sec-do). The `open()` function includes methods where the first argument is a `function(iostream)`. This function is applied to the stream, which is automatically closed afterward. The `do` notation allows to define this function anonymously:
|
||||
|
||||
```{julia}
|
||||
open("data2.txt", "w") do io
|
||||
writedlm(io, A)
|
||||
end
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user