This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
eisensheng's profile picture

file:seek missing in the interface

Started by eisensheng, 11 February 2013 - 02:09 AM
eisensheng #1
Posted 11 February 2013 - 03:09 AM
Greetings,

I was surprised that the :seek method is missing from the file interface since it is somewhat crucial if you want to read a multi-megabyte file without littering the server's memory.

So can we have the :seek method exported on the computercraft interface please? It would be nice if it could follow the same prototype from the original Lua api. Thank you very much.
Cloudy #2
Posted 11 February 2013 - 03:24 AM
Maybe later. It isn't exactly straightforward to implement.
ElvishJerricco #3
Posted 11 February 2013 - 04:08 AM
Just FYI, Clody:

http://docs.oracle.com/javase/tutorial/essential/io/rafs.html
Cloudy #4
Posted 11 February 2013 - 06:24 AM
I am well aware of that and stand by what I said.