把数字放在&;文本存储在txt文件中,然后用C语言读出?如何操作?跪求大师指点。
# include & ltstdio.h & gt
作废?main()?{
文件?* fp
夏尔?s[1024];
fp?=?fopen("F:\\VC\\data.txt "," rt ");
while(fscanf(fp," %s ",s)?==?1)?{
卖出期权;
}
printf(" \ n ");
}
作废?main()?{
文件?* fp
夏尔?s[1024];
fp?=?fopen("F:\\VC\\data.txt "," rt ");
while(fscanf(fp," %s ",s)?==?1)?{
卖出期权;
}
printf(" \ n ");
}