代碼:
strcpy( (char *)TarName, "\\TESTTEST.TXT" );?
s = CH376FileCreatePath( TarName ); ?
sprintf(str,"s=%02x ",(unsigned short)s );
strcpy((char *)buf, "Test ,Hello World!" );
s = CH376ByteWrite( buf, strlen((const char *)buf), NULL );
delay_ms(200);
?s = CH376FileClose( TRUE ); ?
執(zhí)行這代碼后,用電腦看U盤里會生成一個(gè)TESTTEST.TXT的文件,但打開這個(gè)文件是一個(gè)空文件,沒有我想要存的Test ,Hello World!請問我的問題出在哪了?