Input/Output The general read command is Read(n,*) a, b, c The n is a * when the input is from the keyboard. It is the unit number of a file when the output is to a file. The general write is write(n,*) a, b, c This is far more dangerous than the read owing to the fact that the spacing may not be as desired. Especially in the case that the output is to a file it is safer to use write(n,'(3g20.6)')a,b,c The 3g20.6 can be replaced by any of the following. Repeatable Edit Descriptors in C Descriptor Use Iw[.m] Integer values %d Zw Hexadecimal values %#08x Fw.d Real values %w.df eg %8.4f Ew.d[Ee] Real values with exponents %w.dE eg %10.2E Gw.d[Ee] Real values, extended range %w.dg eg %10.2g New line is automatic with next write /n at end of last write For more information go to cbooks.hlp and look up printf or scanf or for Fortran go to fbooks.hlp and look up format