void testfread()
{
FILE *fp;
char c[] = "aaaaaaaaaa";
char buffer[20];
/* 打开文件用于读写 */
fp = fopen("file.txt", "r+b");
/* 写入数据到文件 */
fwrite(c, strlen(c) + 1, 1, fp);
/* 查找文件的开头 */
fseek(fp, 0, SEEK_SET);
/* 读取并显示数据 */
fread(buffer, strlen(c)+1, 1, fp);
VERBOSE << "aa " << buffer << "\n";
fclose(fp);
}