SUMMARY:Creating a a PC datafile from a Tru64 fortran

From: Padiyath Kumar (Kumar.Padiyath@psi.ch)
Date: Tue Nov 26 2002 - 03:19:33 EST


    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



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:49:00 EDT