PDA

View Full Version : help me!!!!!


xhd0926
09-12-2003, 08:04 AM
how can I write strings into a specify file and save it by the IFile or IFileMrg?

I have used the followwing code ,but it view " Priv Violation"!
my code:
......
pFile = IFILEMGR_OpenFile(pMe->m_pIFileMgr,
"statislist.txt",
_OFM_READWRITE);
FILE_Seek(pFile, _SEEK_END, 0);
if( IFILE_Write(pFile,"helloworld",11) == 11 )
{
if(IFILE_Seek(pFile, _SEEK_START, 0) == SUCCESS)
{
.....

Murray Bonner
09-12-2003, 08:08 AM
Set the "File" privilege in your .mif.

regards,
Murray