Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions src/CSVFiles.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,19 @@ end

Base.showable(::MIME"text/html", source::CSVStream) = true

function fileio_load(f::FileIO.File{FileIO.format"CSV"}, delim=','; args...)
function fileio_load(f::FileIO.File{FileIO.format"CSV"}, delim::Char; args...)
return CSVFile(f.filename, delim, args)
end

function fileio_load(f::FileIO.File{FileIO.format"TSV"}, delim='\t'; args...)
function fileio_load(f::FileIO.File{FileIO.format"CSV"}; delim=',', args...)
return CSVFile(f.filename, delim, args)
end

function fileio_load(f::FileIO.File{FileIO.format"TSV"}, delim::Char; args...)
return CSVFile(f.filename, delim, args)
end

function fileio_load(f::FileIO.File{FileIO.format"TSV"}; delim='\t', args...)
return CSVFile(f.filename, delim, args)
end

Expand Down