Files
FIT.jl/src/file.jl
T
2023-04-20 16:01:36 -04:00

24 lines
361 B
Julia

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