代码:
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 );
执行这代码后,用电脑看U盘里会生成一个TESTTEST.TXT的文件,但打开这个文件是一个空文件,没有我想要存的Test ,Hello World!请问我的问题出在哪了?