代碼:
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盤(pán)里會(huì)生成一個(gè)TESTTEST.TXT的文件,但打開(kāi)這個(gè)文件是一個(gè)空文件,沒(méi)有我想要存的Test ,Hello World!請(qǐng)問(wèn)我的問(wèn)題出在哪了?