- 论坛徽章:
- 0
|
请教各位前辈: ile c 程序
// ar+ Open an existing file for reading and writing records. All data is written to the end of the file.
//rr+ Open an existing file for reading, writing or updating records.
请看范例。(你应列出编译的错误信息)
This example shows how the _Ropen function is used.
#include <stdio.h>;
#include <stdlib.h>;
#include <recio.h>;
int main(void)
{
_RFILE *fp;
/* Open the file for processing in arrival sequence. */
if (( fp = _Ropen ( "MYLIB/T1677RD1", "rr+, arrseq=Y" )) == NULL )
{
printf ( "Open failed\n" );
exit ( 1 );
}
else
/* Do some processing */;
_Rclose ( fp );
} |
|