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

editing files w/ programs

Started by qwerty, 18 May 2017 - 10:08 AM
qwerty #1
Posted 18 May 2017 - 12:08 PM
Right now I am working on a program that, if done correclty, should edit a file that the program can read when restarted so it can resume / reload settings but haven't figured it out yet. I'm trying to make a input reader that saves the input of what I've entered. I just wish for an example to how to do this (a link to a wiki post wil work just fine)

best regards
qwerty
Lupus590 #2
Posted 18 May 2017 - 01:35 PM
A general rule of thumb for when needing to do something: look at the API page and check if there is an API which looks like it will do what you need.

The FS API will definitely do what you want.

It also looks like the Settings API solve do part of your situation too.
qwerty #3
Posted 18 May 2017 - 01:52 PM
well, thank you then! This came way faster and with less hassle than I thought! BTW thank you!