[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Condor-users] condor rewrites my file instead of reading it, why???

I did a small test with condor,it seems something wrong.
//the "test.cpp"
//function: Read a float number from an existing file config.ini,
//and write it to another new file test.txt
#include "stdio.h"
#include "fstream.h"
void main()
 ifstream  fin;  //define an input file stream
 fin.open("config.ini"); //  open the existing non-empty config.ini file
 float c;
 fin>>c;  // read the float number to variable c
 ofstream fout("test.txt"); //define an output file
 fout<<c; //output c to test.txt
It runs correctly itself. But when i submit it to condor,the config.ini was rewrote to be empty.
  I am a new user , can anybody help me ???Thank you very much! 

Do You Yahoo!?