实例代码如下:
Code: Select all
#include <wx/ffile.h>
#define VLPHEADER wxT("vlp5")
bool boRet;
wxFFile m_fFile;
boRet = m_fFile.Open( wxT("temp.txt"), "wb" );
if ( boRet )
{
m_fFile.Write(VLPHEADER, wxStrlen(VLPHEADER));
}
m_fFile.Close();
Code: Select all
#include <wx/ffile.h>
#define VLPHEADER wxT("vlp5")
bool boRet;
wxFFile m_fFile;
boRet = m_fFile.Open( wxT("temp.txt"), "wb" );
if ( boRet )
{
m_fFile.Write(VLPHEADER, wxStrlen(VLPHEADER));
}
m_fFile.Close();