home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_08_09
/
8n09078a
< prev
next >
Wrap
Text File
|
1990-07-30
|
467b
|
30 lines
#include <stdio.h>
#include <errno.h>
#include "bfs.h"
main()
{
RFILE *rfd;
char buf[128];
if((rfd=rfopen("SERVER1!testdata", "r"))==NULL) {
printf("File Open Error %d!\n", errno);
perror("testdata");
exit(errno);
}
printf("Remote File SERVER!testdata Open!\n");
while(!rfeof(rfd)) {
rfread(buf, 1, 128, rfd);
printf("Data=[%s]\n", buf);
}
rfclose(rfd);
}