24 lines
361 B
Julia
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 |