Limiting special scripting functions to only restricted people will probably hard to do
Yes a way of accessing files might be good, although it can be quite slow if you want to use it for big files since Graal will need to cache the file (so that accessing the lines is fast and don't mean to save the entire file immediately when you change the lines).