If not then can someone recommend a scripting language ( or general purpose language with scripting ) that I could learn to be able to do this . ( It would be good if the language was not OS specific but doesn't have to be.
12.
If you aren't using something like GameMaker, which already provides these capabilities, and just using a general purpose language like C, then you will need to do a system call to do those things, or call a library which provides those capabilities, etc.
13.
Now, maybe only 2, 000 people have written or will write an Adventure game or Interactive fiction using an authoring tool ( before languages tailored specifically to write Interactive fiction were developed one had to use a fairly complicated general purpose language like C, Fortran or Basic, as well as implement command processing, designing game mechanics, and so on . ) So, in that sort of case, an article about any particular tool or system might only be of interest to a few hundred people out of the couple thousand having an interest, but in that case it is of crucial interest.