C语言如何读取文本里的全部信息

以下是一个txt文本里的内容,如何编写一个函数可以把文本的全部内容显示出来?
品牌名称:海尔
编号:001
型号:fx7510m
制冷大小:2
单价:2000
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(void)
{
FILE *handle;
char buf[64];

handle = fopen("./data.txt", "r");

while(fgets(buf, sizeof(buf), handle))
{
printf("%s", buf);
}
return 0;
}

把败仔你的数据保存到一个文本文消禅件里去,命名为data.txt

xhylyx@xhylyx-desktop:~/桌面$ gcc tmp.c -o tmp
xhylyx@xhylyx-desktop:~/桌面$ ./tmp
品牌名称:海尔
编号:001
型号:fx7510m
制冷大小拿枯尘:2
单价:2000