[英]tail a gzipped file in c++
我有多個巨大的 gzip 文本文件。 我必須讀取第一行和最后 n 行,而不使用 head 和 tail 之類的函數將整個文件加載到 memory 中。 對於純文本文件,我使用類似於此答案的 function 之類的尾巴。
但是我想避免先解壓縮文件。 我已經實現了一個像 function 這樣的頭,使用類似於這個答案的技術來處理 gzip 文件。 但是我沒有實現像 function 這樣的尾巴,它適用於 gzip 文件。
如果不運行整個文件並解壓縮,則無法完成,至少在 memory 中是這樣。
[英]Tail recursion in C++
[英]Seek backwards a text file in Qt5/C++ (tail a file)
[英]Implement “tail -f” in C++
[英]Doing tail recursion in C++
[英]C++ quicksort with tail recursion
[英]How do I read / write gzipped files in C++?
[英]Adding tail to snake game [c++ sfml]
[英]Tail recursion optimization in C++ code
[英]Stack Overflow with tail recursion function c++
[英]C++: Get head and tail of a parameter pack
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.