one more thing.. Im making it do each letter not line so when i do a++ and b++ it only increases the chars not lines how would i make it do lines? ill post my code up shortly.
EDIT:
and i also am having problems with the (NOTE) problem at the end of each line this it my code
int main (void) {
pspDebugScreenInit();
SetupCallbacks();
FILE *pFile;
char buffer[100];
int fileLen = 0;
char c = 0;
int ready = 0;
int count = 0;
int i = 0;
pFile = fopen("myfile.txt","r");
if (!pFile){
printf("Error. File not opened.\n");
sceKernelSleepThread();
}
// Get File Length
fseek(pFile,0,SEEK_END);
fileLen = ftell(pFile);
fseek(pFile,0,SEEK_SET);
while(ready == 0){
i = 0;
sprintf(buffer," ");
count = 0;
while(1){
c = fgetc(pFile);
if (c == 0X0D) //0x0D is the Line Return
break;
if (c == EOF){
ready = 1;
break;
}
if (c != 0x0A){
buffer[count] = c;
count = count + 1;
}
}
printf(buffer,"\n");
}
fclose(pFile);
sceKernelSleepThread();
return 0;
}
im using the myfile.txt because filename is when i get the file browser
my text file looks like this
This is a text file.
psp-programming.com rules
visit www.onehitgamer.com
for psp hacking!!!
some more text.
and when i run the app on my psp the notes are gone but it now looks like this
this is a text file.psp-programming.com rulesvisit www.onehitgamer.comfor psp hacking!!!omsome more text.cking!!!om
does anyone know what i am doing wrong cause i have tried many things but cant seem to get it working