I want to use 'inkey' to type a string to the screen and more importantly then save it to a txt file. This is explained in AUM 74 using a booker database as an illustration.

I wondered if there is another AUM (I haven't found one but may have missed it that will also help explain this concept). When saving to a txt file AUM 74 gets into structs and pstring which I want to avoid. Is there a simpler way of achieving the same result e.g.

function input_clicked()
{
if(mouse_pos.y > 267) && (mouse_pos.y < 284)
{
str_copy(author_str " ");
set(author_txt, VISIBLE);
inkey(author_str);

//at this point I want to save what I have put in the string to a .txt file e.g.

function save_data()
{
filehandle = file_open_write("database.txt");

//at this point in AUM 74 one now goes into pstring. Is there a simply way to save the author string to .txt without using pstring and structs. Is there perhaps another AUM or tutorial that might help with this that I have overlooked?

Thanks for your help.