Subversion Repositories gelsvn

Rev

Rev 39 | Rev 136 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 39 Rev 47
Line 50... Line 50...
50
			  const std::string& VarName,
50
									const std::string& VarName,
51
			  const std::string& FileName,
51
									const std::string& FileName,
52
			  const bool append,
52
									const bool append,
53
			  const std::string& Comment)
53
									const std::string& Comment)
54
{
54
		{
55
	long nMode;
-
 
56
	if(append)
-
 
57
		nMode=std::ios::app;
55
				std::ofstream Mfile(FileName.c_str(), 
58
	else
-
 
59
		nMode=std::ios::trunc;
56
														append ? std::ios::app : std::ios::trunc);
60
	std::ofstream Mfile(FileName.c_str(), nMode);
57
																				 
61
	
58
	
62
	
59
	
63
	if(!Comment.empty())
60
				if(!Comment.empty())
64
		Mfile << "% " << Comment.c_str() << "\n";
61
						Mfile << "% " << Comment.c_str() << "\n";
65
	Mfile << VarName.c_str() << "=[";
62
				Mfile << VarName.c_str() << "=[";