TEB106@psuvm.psu.edu (Tom billet) (08/07/90)
Hi, I recently purchased the new version of MicroSoft Fortran 5.0. I have never used any previously version of MicroSoft Fortran and would like to use a data file in an existing Fortran program. I looked at all the command line parameters and do not see a way to include a data file. For example, the previous version of Fortran allows me to type the following command to include a data file: F fortran program name<indata file>outdata file The F is the name of the fortran compiler and the rest is just redirection commands. Is there a similar way in Fortran 5.0? Thanks in advance. teb106
sjouke@tnosoes.izf.tno.nl (Sjouke Burry) (08/08/90)
In article <90218.171331TEB106@psuvm.psu.edu>, TEB106@psuvm.psu.edu (Tom billet) writes: > Hi, > > I recently purchased the new version of MicroSoft Fortran 5.0. I have never > used any previously version of MicroSoft Fortran and would like to use a data > file in an existing Fortran program. I looked at all the command line > parameters and do not see a way to include a data file. For example, the > previous version of Fortran allows me to type the following command to include > a data file: F fortran program name<indata file>outdata file > The F is the name of the fortran compiler and the rest is just redirection > commands. Is there a similar way in Fortran 5.0? Thanks in advance. > > > teb106 Maybe you can use a set of assembler routines we have been using for some years for ibm and microsoft fortran. They are uuencoded and zoo archived. Files: logic.asm and logic.obj We use them added to the library. Use in fortran: character*80 lin integer*2 n call cmdln(n,lin) n is the number of remaining characters on command line,lin contains them. ********************************************************************* * Sjouke Burry +31 34 63 56426(room phone)* * TNO Institue for perception +31 34 63 56211(phone desk)* *P.O.Box 23 +31 34 63 53977( fax ) * * 3769 ZG Soesterberg * * The Netherlands * * Email adress: sjouke@izf.tno.nl * * Full path :uunet!hp4nl.nluug.nl!tnosoes!sjouke * ********************************************************************* -------------CUT HERE------------- begin 0666 LOGIC.ZOO M6D]/(#(N,# @07)C:&EV92X: #<I\3]*@ -;___\" $ !W*?$ M_0(!TQ$ '$ L#D19%M0&. 8A$ $ !L;V=I8RYA<VT M&HI$"@!_%#8 0"DC* =P@<2+"@P8,($RI<B+"!@AT@(DJ< M2+&BQ8L8,VJLN,,A1(EAW) !8::.FS%TTKQQ0_*-'!!T[KP!D<8-G3)GRLA1 M(0.$G3!RTH01PZ;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KP@H??K :=VJ6;M6ACDI;<^@ M19/V8GI!ZM6M 52*O?"X;>6Y=S,WX9P[<.BN\14O8#WY:-XSG@L'L(:Z@?*W M?2_2C=[WC._K38$BT?4X+KK-A/"? ;+\$V = ^#R#P"\(:*>,I+1 @H&8_DW M5H -/BB9$Q.F59X!_PE@@B(7!!@<A $ <HA;EDH@"P;!!BB+%M@N)TB!Q 0 M "T S** /?,0 (,BT(1HHVDXZLBCCT "0LR0U!@I8%"R[&!C:$GNV../00Y9 M9%!7CIBCEDS.XR244LYHAHG@ 5 (*"?0Y2*,,E)9XY0ORE#GBTJPV<4R<("2 M@EX?COA +?\,,>(%@.C#!QT+^-,,'0=(N0X[)TI6#B@Q +:9!YW1\D* C CC MB#:+S&.$F#Q^QH )B1S @!T(+ (,OP0XP<"\Y"BV@>L2<8 ) HHM, 0S Q MA4( V $) PHU4, 031#!A!/,DO.L0@$4D$003A A [,0;!N4M^ 200.S#9B+ M@+=.+%%$%LQ> \D""@U 0!)/2#&N0D+<JQ !^_:[KD(_F%N MUCT^R\ YIAK M ,,&,SL.) TH=( !\F8Q!!)+,'L)L0HI,(!,0C K",EI#6 %$54PNP;&"C%@ MP,M53$&%%,RFH8@ "M$1$-RGQ/T" ; /R# end
jwhite@dtoa3.dt.navy.mil (White) (08/09/90)
In article <90218.171331TEB106@psuvm.psu.edu> TEB106@psuvm.psu.edu (Tom billet) writes: >Hi, > >I recently purchased the new version of MicroSoft Fortran 5.0. I have never > used any previously version of MicroSoft Fortran and would like to use a data >file in an existing Fortran program. I looked at all the command line >parameters and do not see a way to include a data file. For example, the >previous version of Fortran allows me to type the following command to include >a data file: F fortran program name<indata file>outdata file >The F is the name of the fortran compiler and the rest is just redirection >commands. Is there a similar way in Fortran 5.0? Thanks in advance. > > teb106 If you have Version 5.0, then you all ready have what you need. There are additional procedures that were added to Version 5.0 to read the commandline arguments. The two routines are NARGS() and CALL GETARG (n, buffer, status). They are referanced in section 5.3.3, page 271 of the Reference Manual. Just add these to the beginning of the program, maybe with some code to get the filenames from the user if they are not on the commandline, and your commandline will look something like this: C:\> FortranProgName InFileName OutFileName Another less elegant way to do it is to open the two file with File = '' and use the same commandline. The first unit open is given the InFileName and the second is given the OutFileName, If the user doesnot enter and InFileName or OutFileName the they will be asked for a filename for unit XX. If they didn't write the program then they might not know what unit XX is supposed to be. For info on this method see Page 203 in the same manual. Hope this helps you Joe White jwhite@dtoa3.dt.navy.mil