Subversion Repositories spk

Rev

Rev 68 | Rev 126 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 68 Rev 111
Line 1085... Line 1085...
1085
	Utils::String strtext;
1085
	Utils::String strtext;
1086
 
1086
 
1087
	CFileIO File("data\\tcemp");
1087
	CFileIO File("data\\tcemp");
1088
	bool read = false;
1088
	bool read = false;
1089
 
1089
 
1090
	if ( File.exists() )
1090
	if ( File.exists() && File.startRead() )
1091
	{
1091
	{
1092
		CyStringList *list = File.ReadLinesStr();
-
 
1093
		if ( list )
1092
		while(!File.atEnd()) {
1094
		{
-
 
1095
			for ( SStringList *str = list->Head(); str; str = str->next )
-
 
1096
			{
-
 
1097
				strtext += str->str.ToString();
1093
			strtext += File.readEndOfLine();
1098
				strtext += "\n";
1094
			strtext += "\n";
1099
			}
-
 
1100
			read = true;
1095
			read = true;
1101
 
-
 
1102
			delete list;
-
 
1103
		}
1096
		}
-
 
1097
		File.close();
1104
	}
1098
	}
1105
 
1099
 
1106
	if ( !read )
1100
	if ( !read )
1107
	{
1101
	{
1108
		strtext += "28;0;0;0;0;81;10053;0;35714;1;1;0;35714;-10000;0;0;SS_WARE_SW_CUSTOM1_1;\n";
1102
		strtext += "28;0;0;0;0;81;10053;0;35714;1;1;0;35714;-10000;0;0;SS_WARE_SW_CUSTOM1_1;\n";