1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
| #include <stdlib.h>
#include <stdio.h>
#include <string.h>
main()
{
int i=1,j=1;
char *c2,*c3;
char *c;
c=0;
c2=0;
c3=0;
char *a[65000][256];
for(i=1;i<=65000;i++) {for(j=1;j<=256;j++)*a[i][j]=0;};
i=1;
j=1;
FILE *fp=fopen("/sdcard/GDE.Main/tt.txt","a+");
rewind(fp);
do{
fgets(c,1,fp);
fseek(fp,1,SEEK_CUR);
fgets(c2,1,fp);
fseek(fp,-1,SEEK_CUR);
if (c=="/t") j++;
if (c=="/" && c2=="/n") i++;
strcat(a[i][j],a[i][j]);
strcat(a[i][j],c);
}while (feof(fp)==0);
fclose(fp);
return 0;
} |
Partager