Interesting that .readLine() returns the newline char at the end - if there is.
What about a .seek(pos)?` and with no argument being '.length()'? ...may be opt 3rd arg in open? ... and optional 4th arg as like '.substr()' with auto close if not 5th arg 'keepOpen' is supplied?
© Espruino, powered by microcosm.
Report a problem