tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Padiyath Kumar <Kumar.Padiyath@psi.ch>
Subject: SUMMARY:Creating a a PC datafile from a Tru64 fortran
Date: Tue, 26 Nov 2002 09:19:33 +0100	[thread overview]
Message-ID: <ABC4EFAF3217D311A39200508B08F7FC01D8FC02@psi17.psi.ch> (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


                 reply	other threads:[~2002-11-26  8:19 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox