When I use zlib push gunzip, to read a large gzip file line by line, the tell function always returns -1 instead of the current access position. Is there a way to get the access position while reading a gzip file line by line?
set fp [open "foo.gz" r]
zlib push gunzip $fp
while {![eof $fp]} {
set line [gets $fp]
set idx [tell $fp]
puts $idx
}
$idx is always -1
New contributor
kavi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.