fp = _Ropen("MY_LIB/MY_FILE", "wr"); /* Output only.*/
/* Code to write data to MY_FILE */
_Rclose(fp);
/* Other code in your application. */
fp = _Ropen("MY_LIB/MY_FILE", "rr"); /* Input only.*/
/* Code to read data from MY_FILE. */
_Rclose(fp);
fp = _Ropen("MY_LIB/MY_FILE", "ar+"); /* Input and output.*/
/* Code to write data to MY_FILE. */
/* Other code in your application. */
/* Code to read data from MY_FILE. */
/* Use either _Rreadf or _Rlocate
/* with the option __FIRST. */
_Rclose(fp);