Sed
Still Fresh
Hi!
I want to save some things in a txt file,
but it don't works.
I have searched for answers in this forum, but I cant find them.
Please help me. :unsure:
That's my code:
I want to save some things in a txt file,
but it don't works.
I have searched for answers in this forum, but I cant find them.
Please help me. :unsure:
That's my code:
Code:
#include <stdlib.h>
#include "gpdef.h"
#include "gpstdlib.h"
#include "gpgraphic.h"
#include "gpmain.h"
#include "gpstdio.h"
#include "gpfont.h"
#include "gpmem.h"
#include "gpmm.h"
const unsigned char thingstosave[5] = {
1, 2, 3, 4, 5
};
void GpMain(void *arg)
{
int i, j;
nflip = 1;
for(i = 0; i < 2; i++)
{GpLcdSurfaceGet(&gpDraw[i], i);}
GpSurfaceSet(&gpDraw[0]);
F_HANDLE *file;
GpFileCreate ("gp:\test.txt",ALWAYS_CREATE,&file);
GpFileWrite (file,&thingstosave,54);
GpFileClose (file);
}