Commit 322ddd91 authored by Antonino D'Anna's avatar Antonino D'Anna

readGF now return an empty GeneratedFile if filename is not file

parent 07bbfcdb
......@@ -31,6 +31,7 @@ function findEndRecord(io::IOStream)
end
function readGF(filename)
isfile(filename) || return GeneratedFile(filename)
records = Vector{Record}()
open(filename,"r") do io
while seekRecord(io)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment