-->
Page 1 of 1

Read /write to file?

PostPosted: Mon May 09, 2016 3:34 pm
by Electroguard
If I am understanding correctly, LOAD 'chains' (loads and runs) another .bas file, READ and WRITE allow data and variables to be saved/read from flash (but not file?) ... so is there any way to read/write individual lines of text from a specified file?

Basically the question is... would it be possible to parse a file saved in flash memory?

Re: Read /write to file?

PostPosted: Mon May 09, 2016 5:31 pm
by cicciocb
Not yet but it's in the todo list.

Re: Read /write to file?

PostPosted: Mon May 09, 2016 5:42 pm
by Electroguard
Excellent! I've got several things lined up for that when it's available, from parsing entries from config file, to reading in a .html and automatically wrapping each line with html | ... | etc.
Plenty to be getting on with in the meantime, but it's nice to know it's on the cards.
And I'm hoping that facility may be able to be extended to cover SD files as well if at all possible, but I've no doubt that's already a twinkle in your eye.