Hi,

I am trying to write a program that will create a new file if it 
does not exist and then start appending Information to it.

What I understand is...
1) io__open_append  opens the file for appending and returns 
whether the file could be opened and if not then an error

2) io__read_line_as_string accepts a line from the user

3) io__set_input_stream changes the current input stream to the 
stream specified.

I am at a loss, I mean that I am not able to understand how do I 
use these functions for what I want to do. If these are not the 
right functions then which to use??

I am not able to find an example in the tests or samples directory 
for it. There is only for opening a file for viewing its contents. 
It does not provide any help for creating new files and appending 
information to it by the end user.

I know I should be reading the io.m file for the solution. But, I 
am not able to understand how to use it for what I want.

Plz do reply as to which directory I could get the example or plz 
do explain with a small example.

Thanks and Regards,

Noel
--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users@cs.mu.oz.au
administrative address: owner-mercury-users@cs.mu.oz.au
unsubscribe: Address: mercury-users-request@cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request@cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------

