lijunlong

Results 335 comments of lijunlong

I think you can read the file line by line and use a table to cache the lines if the file content does not change.

``` local fh, err = io.open("data.txt") local cache = {} if fh == nil then -- return end for line in fh:lines() do cache[line] = 1 end ``` Something like...

Just like what I said above, you need to read the content from the file and cache the result if it is possible. If you open the file and read...

Thanks for your feedback. We will look into it later.