src/Matrix/complex.cc
// Input                z     : Complex number (this)
//                      fn    : Filename
//                      fp    : File stream (pointing at z spot)
// Return               void  : The complex number z is read
//                              from a file called filename or
//                              from file fp at current location
Input                z     : Complex number (this)
fn    : Filename
fp    : File stream (pointing at z spot)
Return               void  : The complex number z is read
from a file called filename or
from file fp at current location
Input z : Complex number ( this ) fn : Filename fp : File stream ( pointing at z spot ) Return void : The complex number z is read from a file called filename or from file fp at current location
void complex::read(const string& fn)
  {                                                                  
  std::ifstream fp;					
  fp.open(fn.c_str(),std::ios::in|std::ios::binary); 	
  if(!fp)					
    {
    Zerror(1, fn, 1);		 		
    Zfatality(11);				
    }
  read(fp);					
  fp.close();					
  }
void complex :: read ( const string & fn ) { std :: ifstream fp ; fp . open ( fn . c_str ( ) , std :: ios :: in | std :: ios :: binary ) ; if ( ! fp ) { Zerror ( 1 , fn , 1 ) ; Zfatality ( 11 ) ; } read ( fp ) ; fp . close ( ) ; }
Input                z     : Complex number (this)
fn    : Filename
fp    : File stream (pointing at z spot)
Return               void  : The complex number z is read
from a file called filename or
from file fp at current location
Input z : Complex number ( this ) fn : Filename fp : File stream ( pointing at z spot ) Return void : The complex number z is read from a file called filename or from file fp at current location
// Construct a file // Open file // Check if file is OK // File problems  // Can't input from file // Read z , use overload // Close file