Simple io in julia.
parent
ddd8a20949
commit
dac67fb8a5
|
@ -0,0 +1,11 @@
|
|||
lines = try
|
||||
open("/etc/passwd", "r") do f
|
||||
readlines(f)
|
||||
end
|
||||
catch
|
||||
@warn "File not found"
|
||||
end
|
||||
|
||||
for line in lines
|
||||
print("Line " * line * "\n")
|
||||
end
|
Loading…
Reference in New Issue