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 is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
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?