helppppp....

From: Jeevan (haig1_at_rediffmail.com)
Date: 05/04/04


Date: 4 May 2004 10:31:25 -0700

Dear all,

I want to get the header name from a data file and include it in the
function in the fortran.
For eg.

program main
        character*80 getheader
        open (1, file = 'input.doc', access= 'sequential',
     & status = 'old')
         read(1,'(A)')getheader
        close(1)

        call function(getheader)

end program main

subroutine function(getheader)

character*80 header

# include "getheader"
..............
............

end

Now the problem is that it is not accepting the getheader
To be noted is that getheader conatins the path of the header
file...say ../inc/read.h

The error that i get is getheader is not a file or directory..

PLZZ can anyone throw light on this!!!!



Relevant Pages

  • Re: helppppp....
    ... | I want to get the header name from a data file and include it in the ... | character*80 getheader ... You can find a Fortran ...
    (comp.lang.fortran)
  • help....
    ... I want to get the header name from a data file and include it in the ... subroutine function ... Now the problem is that it is not acceptimg the getheader ...
    (comp.lang.c)
  • RE: helppppp....
    ... >| I want to get the header name from a data file and include it in the ... why is the above not character*80 getheader? ... >If you're trying to evaluate an expression set by user in run-time, ... You can find a Fortran ...
    (comp.lang.fortran)
  • Re: help....
    ... >I want to get the header name from a data file and include it in the ... >subroutine function ... >To be noted is that getheader conatins the path of the header ...
    (comp.lang.c)
  • Re: helppppp....
    ... A #include statement is expanded at compile time. ... > I want to get the header name from a data file and include it in the ... > To be noted is that getheader conatins the path of the header ...
    (comp.lang.fortran)