Write/edit a .TXT and save

Hi, currently I’m using this to save the .TXT in desktop, how do I save the .txt in the same folder of my .fla/.exe/.air?

var file:File = File.desktopDirectory.resolvePath( "text.TXT" );

and i’m using this code to open the .txt and write the .txt with new info, but how do I get the info inside the .txt and print it out in flash component datagrid when the flash application starts? so when the application starts, the user will see all the data in the .txt inside flash component datagrid??


s = st.text+ "
";
stream.open( file, FileMode.APPEND );
stream.writeUTFBytes( s );
stream.close();