Subversion Repositories spk

Rev

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

Rev 52 Rev 82
Line 19... Line 19...
19
void CTextDB::parseTextFile(int iFromPage, int iToPage, const Utils::String &sFile, int iLang)
19
void CTextDB::parseTextFile(int iFromPage, int iToPage, const Utils::String &sFile, int iLang)
20
{
20
{
21
	// open and read the text file
21
	// open and read the text file
22
	CFileIO File(sFile);
22
	CFileIO File(sFile);
23
	CyStringList *lines = File.ReadLinesStr();
23
	CyStringList *lines = File.ReadLinesStr();
24
	if ( File.StartRead() ) {
24
	if ( File.startRead() ) {
25
		while ( !File.AtEnd() ) {
25
		while ( !File.atEnd() ) {
26
			this->_parseFileLine(iFromPage, iToPage, iLang, File.readEndOfLine());
26
			this->_parseFileLine(iFromPage, iToPage, iLang, File.readEndOfLine());
27
		}
27
		}
28
		File.StopRead();
28
		File.close();
29
 
29
 
30
	}
30
	}
31
	m_iInPage = 0;
31
	m_iInPage = 0;
32
}
32
}
33
 
33