Page 1 of 1

PostPosted: Sat Nov 12, 2005 5:05 am
by fabian1131
Hi, i wrote a program using the Memo function and VFS to export memos to the External card as textfiles.
The programm is in german but you will still see what it does:
http://www.freewebs.com/fabian1131/MemoCard13.prc

if you have any questions, just post it.

fab

++ Vielen Dank dass Sie meinen Post lesen++
++ Thank you for reading my post ++
++ Merci beaucoup pour lire ma poste ++
++ Grazie per lettura del mio messaggio ++

PostPosted: Sun Jan 29, 2006 10:53 am
by exit_head
Thats awsome! did you ever figure out how to read a txt file from the card?

PostPosted: Mon Jan 30, 2006 3:41 pm
by fabian1131
yes i figured out how to read a text file.
Here is the code if you need it:

void exportText(){
File f;
int i,b;
int iLen;
char cChar[8192];

CurrPath=fldPath.text;
CurrVolume.create(CurrPath+fldName.text+".txt");
if(CurrVolume.open(CurrPath+fldName.text+".txt",vfsModeReadWrite,f)!=0){
alert("Error");
return;
}
else {
iLen=strlen(sText);
for(i=0;i<iLen;i++){
cChar[i]=sText[i];
}
f.write(cChar,"c",i); //typeof(cChar[i])
f.close();
}
}

++ Vielen Dank dass Sie meinen Post lesen++
++ Thank you for reading my post ++
++ Merci beaucoup pour lire ma poste ++
++ Grazie per lettura del mio messaggio ++