Begin body reading code

This commit is contained in:
2023-04-20 16:01:36 -04:00
parent 219ec38e22
commit 9dd04d2cb1
4 changed files with 75 additions and 8 deletions
+24
View File
@@ -0,0 +1,24 @@
module file
export FITFile, read_file
include("header.jl")
include("body.jl")
using .header
using .body
struct FITFile
header::FITHeader
body::RecordHeader
end
function read_file(filepath::AbstractString)::FITFile
open(filepath, "r") do f
header = read_header(f)
body = read_row(f)
FITFile(header, body)
end
end
end