This is how I used GZip.jl in the tests for the MatrixMarket package

https://github.com/JuliaSparse/MatrixMarket.jl/blob/ba60e447f24938952509bb42c6d6bf9223562ef8/test/dl-matrixmarket.jl#L7

Perhaps it might be useful for you.

Thanks,

Jiahao Chen
Staff Research Scientist
MIT Computer Science and Artificial Intelligence Laboratory

On Sun, Jan 4, 2015 at 9:29 PM, Todd Leo <[email protected]> wrote:

> An intuitive thought is, uncompress your csv file via bash utility *zcat*,
> pipe it to STDIN and use* readline(STDIN) *in julia.
>
>
>
> On Monday, January 5, 2015 7:51:18 AM UTC+8, ivo welch wrote:
>>
>>
>> dear julia users:  beginner's question (apologies, more will be coming).
>>  it's probably obvious.
>>
>> I am storing files in compressed csv form.  I want to use the built-in
>> julia readcsv() function.  but I also need to pipe through a decompressor
>> first.  so, I tried a variety of forms, like
>>
>>    d= readcsv("/usr/bin/gzcat ./myfile.csv.gz |")
>>    d= readcsv("`/usr/bin/gzcat ./myfile.csv.gz`")
>>
>> I can type the file with run(`/usr/bin/gzcat ./crsp90.csv.gz"), but
>> wrapping a readcsv around it does not capture it.  how does one do this?
>>
>> regards,
>>
>> /iaw
>>
>>

Reply via email to