Mailing List Archives
Authenticated access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Condor-users] condor rewrites my file instead of reading it, why???
- Date: Wed, 17 Nov 2004 16:39:13 +0800 (CST)
- From: 鲁敏 <lumiousy@xxxxxxxxxxxx>
- Subject: [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
fin.close();
fout.close();
}
////////////////////////////////////////
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!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
美女明星应有尽有,搜遍美图、艳图和酷图
1G就是1000兆,雅虎电邮自助扩容!