Subversion Repositories spk

Rev

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

Rev 118 Rev 119
Line 58... Line 58...
58
	m_sFile.removeChar(13);
58
	m_sFile.removeChar(13);
59
 
59
 
60
	this->_readFileSize();
60
	this->_readFileSize();
61
	return true;
61
	return true;
62
}
62
}
63
/*bool CFileIO::Open ( CyString filename, bool binary )
-
 
64
{
-
 
65
	return open(filename.ToString(), binary);
-
 
66
}
63
 
67
*/
-
 
68
unsigned char *CFileIO::read(size_t iAmount)
64
unsigned char *CFileIO::read(size_t iAmount)
69
{
65
{
70
	if ( !this->isOpened() ) startRead();
66
	if ( !this->isOpened() ) startRead();
71
	if ( !this->isOpened() ) return NULL;
67
	if ( !this->isOpened() ) return NULL;
72
 
68
 
Line 796... Line 792...
796
	return m_sFilename.token(".", -1);
792
	return m_sFilename.token(".", -1);
797
}
793
}
798
 
794
 
799
Utils::String CFileIO::extension ()
795
Utils::String CFileIO::extension ()
800
{
796
{
801
	if ( m_sFilename.empty() ) return "";
797
	if ( m_sFilename.empty() ) return Utils::String::Null();
802
	return m_sFilename.token(".", -1);
798
	return m_sFilename.token(".", -1);
803
}
799
}
804
 
800
 
805
CyString CFileIO::ChangeFileExtension ( CyString ext )
801
CyString CFileIO::ChangeFileExtension ( CyString ext )
806
{
802
{