Exemple #1
0
		Bool TextFile::WriteText(CStr fileName, CStr text, UInt textLength, Exception* out_ex)
		{
			ASSERT_PARAMETER(fileName);
			ASSERT_PARAMETER(text);

			TextFile *textFile = TextFile::Create(fileName, out_ex);
			Bool result = false;

			if(textFile)
			{
				result = textFile->Write(text, textLength, out_ex); 
				GALATEA_DELETE_PTR(textFile);
			}

			return result;
		}
Exemple #2
0
		void TextFile::AppendAll(CStr fileName, CStr text, UInt textLength)
		{
			TextFile *textFile = TextFile::Append(fileName);
			textFile->Write(text, textLength); 
			DeletePtr(textFile);
		}