【发布时间】:2014-12-15 08:52:39
【问题描述】:
我有这个
int main(int argc, char* argv[])
{
FILE *file = fopen("text", "rb");
char line[128];
while(fgets(line, sizeof(line), file))
{
printf("%s", line);
}
return 0;
}
我想从文件中删除负载。 这是该计划的一部分。 我想在 fgets 离开 我试试这个
char file[] = "name = xxxx\nsurname = xxx\n adress = xxx";
【问题讨论】:
-
没看懂你的问题,能解释一下吗?
-
I would like to remove the load from the file这是什么意思? -
您是否期望从数组中获取输入?????