Trouble in reading shared resource file programmatically

hi all !!

Can anyone help me in reading .txt files programmatically via lotusScript or Java…

actually I have a .txt file in the Shared Resources->Files->myfile.txt

Now I want to read/write the file programatically and store user information in that file.

thanks

kaushik das