Subversion Repositories spk

Rev

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

Rev 95 Rev 111
Line 457... Line 457...
457
	if ( m_sFilename.empty() ) return 0;
457
	if ( m_sFilename.empty() ) return 0;
458
 
458
 
459
	CyStringList *file = new CyStringList;
459
	CyStringList *file = new CyStringList;
460
	Utils::String line;
460
	Utils::String line;
461
	std::ifstream infile (m_sFilename.c_str(), std::ios_base::in);
461
	std::ifstream infile (m_sFilename.c_str(), std::ios_base::in);
462
	while (getline(infile, line, '\n'))
462
	while (getline(infile, line, '\n')) {
463
	{
-
 
464
		file->PushBack(CyString(line.removeChar((char)0)));
463
		file->PushBack(CyString(line.removeChar((char)0)));
465
	}
464
	}
466
 
465
 
467
	infile.close();
466
	infile.close();
468
 
467
 
469
	return file;
468
	return file;
470
}
469
}
-
 
470
 
-
 
471
Utils::CStringList *CFileIO::readLinesStr()
-
 
472
{
-
 
473
	if ( m_sFilename.empty() ) return 0;
-
 
474
 
-
 
475
	Utils::CStringList *file = new Utils::CStringList();
-
 
476
	Utils::String line;
-
 
477
	std::ifstream infile (m_sFilename.c_str(), std::ios_base::in);
-
 
478
	while (getline(infile, line, '\n'))	{
-
 
479
		file->pushBack(line.removeChar((char)0));
-
 
480
	}
-
 
481
 
-
 
482
	infile.close();
-
 
483
 
-
 
484
	return file;
-
 
485
}
-
 
486
 
471
 
487
 
472
bool CFileIO::put(const unsigned char c)
488
bool CFileIO::put(const unsigned char c)
473
{
489
{
474
	if ( !this->isOpened() ) return false;
490
	if ( !this->isOpened() ) return false;
475
 
491