At 4:24 PM -0700 9/7/00, Brad Hughes wrote:
>Could someone post a simple C example to do what my
>FORTRAN code did? I'll try that. Thanks.
Brad,
This will probably do it. I don't have DECNET set up on my 7.2-1
machine (or any other nodes to talk to), so I don't know what it does
remotely. If this works on 7.1 but not 7.2-1, then the C RTL has
probably been "improved" in ways that break what you are doing.
Otherwise I may have guessed wrong about how Perl implements the
open().
$ type test_fopen.c
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
int main()
{
FILE *fd;
fd = fopen( "stat_logger", "a+" );
if (fd == NULL) {
perror("oops");
if (errno == EVMSERR) exit(vaxc$errno);
}
fputs("ho there!\n", fd);
fclose(fd);
}
--
____________________________________________
Craig A. Berry
mailto:[EMAIL PROTECTED]