* SUMMARY:Creating a a PC datafile from a Tru64 fortran
@ 2002-11-26 8:19 Padiyath Kumar
0 siblings, 0 replies; only message in thread
From: Padiyath Kumar @ 2002-11-26 8:19 UTC (permalink / raw)
Many thanks for all the reply.The following examples works for
both fortran and c programs:
Fortran:
=======
program test
open(1,status='new', recordtype='stream_lf')
n=1
do i=1,10
write(1,*) n
n=n+1
end do
end
C-program:
==========
#include <stdlib.h>
#include <stdio.h>
main()
{
printf("Hello, World\r\n");
}
with best regards,
Kumar
> Hello,
> One of our user creating a data file from Fortran and C-program on Tru64.
>He has got an open statement inside the programs for this file creation.
>The data file contents are observed during the execution of the job on
Tru64
>from a Window PC with a commecial graphic SW.Till now the user was using
>SoftWindows SW on UNIX machine to create a PC file. The PC file requires
>^M character at the end of each record. The question is:
>How can he create the records with a ^M instead of <CR><LF>?
>How he has to open his data file in the program? He wants to create
>this PC file format so that he is in a position to evaluate the data
>on the PC during the JOB runs on
>Is there any arguement in the open statement which I can use?
with regards,
Kumar
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-11-26 8:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-26 8:19 SUMMARY:Creating a a PC datafile from a Tru64 fortran Padiyath Kumar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox