hello
i want to make files on my storage memory or on my SD card.
How can i make this and how can test whether a file exsist?

How Works The File Command
Started by
Horrowind
, Apr 04 2007 08:29 PM
3 replies to this topic
#1
Posted 04 April 2007 - 08:29 PM
#2
Posted 05 April 2007 - 03:40 AM
in basic or in c?
#3
Posted 05 April 2007 - 05:08 AM
Well, if we are talking about using C, I figured out how the file functions worked a while ago. Here was the thread: http://www.casiocalc...?showtopic=3168
It seems however the link is down right now, however here was the code for the demonstration:
It seems however the link is down right now, however here was the code for the demonstration:
/* File.c Demonstration of creating files and directories. Contact: <u title="Email protected, replace " AT " by "@"">kucalc[i] AT [/i]gmail.com</u> */ #include "fxlib.h" int AddIn_main(int isAppli, unsigned short OptionNum) { FONTCHARACTER FileName[]={'\\','\\','f','l','s','0','\\','f','i','l','e','n','a','m','e','.','e','x','t',0}; FONTCHARACTER DirName[]={'\\','\\','f','l','s','0','\\','d','i','r','n','a','m','e','.','e','x','t',0}; unsigned int key; Bdisp_AllClr_DDVRAM(); locate(1,4); Print((unsigned char*)"Press MENU"); locate(1,5); Print((unsigned char*)"to exit and go to"); locate(1,6); Print((unsigned char*)"MEMORY."); Bfile_CreateDirectory(DirName); Bfile_CreateFile(FileName, 500); while(1){ GetKey(&key); } return 1; } //**************************************************************************** //************** **************** //************** Notice! **************** //************** **************** //************** Please do not change the following source. **************** //************** **************** //**************************************************************************** #pragma section _BR_Size unsigned long BR_Size; #pragma section #pragma section _TOP //**************************************************************************** // InitializeSystem // // param : isAppli : 1 = Application / 0 = eActivity // OptionNum : Option Number (only eActivity) // // retval : 1 = No error / 0 = Error // //**************************************************************************** int InitializeSystem(int isAppli, unsigned short OptionNum) { return INIT_ADDIN_APPLICATION(isAppli, OptionNum); } #pragma section
#4
Posted 09 April 2007 - 05:58 PM
thanks
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users