How to deal with a very large text file?
问题 I'm currently writing something that needs to handle very large text files (a few GiB at least). What's needed here (and this is fixed) is: CSV-based, following RFC 4180 with the exception of embedded line breaks random read access to lines, though mostly line by line and near the end appending lines at the end (changing lines). Obviously that calls for the rest of the file to be rewritten, it's also rare, so not particularly important at the moment The size of the file forbids keeping it