Search code examples
rebolred

Red has no open function like Rebol?


I want to read 10 lines from the end of a big text file without loading the whole file in memory.

I wanted to try to use Open as explained here for Rebol In Rebol, what is the idiomatic way to read a text file line by line?

But Red doesn't have open function ?


Solution

  • You can try a read/lines/seek/part %yourfile offset blocksize

    But I have no clue. You have to test and adapt your offset and blocksize.