当前位置:网站首页>Fgetc() reads content from file
Fgetc() reads content from file
2022-06-26 16:41:00 【Muzi..】
#include<stdio.h>
#include<stdlib.h>
int main( )
{
FILE *fp;
char ch,filename[20];
printf("please input the filename you want to write:");
scanf("%s",filename);
if(!(fp=fopen(filename,"r")))
{
printf("cannot open the file!\n");
exit(0);
}
while(ch!=EOF)
{
ch=fgetc(fp);
putchar(ch);
}
fclose(fp);
}
边栏推荐
- pybullet机器人仿真环境搭建 5.机器人位姿可视化
- Niuke Xiaobai monthly race 50
- Research on natural transition dubbing processing scheme based on MATLAB
- Some instance methods of mono
- 数据分析----numpy快速入门
- [chat in 5] eight years after graduation, I have been pursuing my dream
- Cookie和Session详解
- Redis migration (recommended operation process) 1
- 安信证券排名第几位?开户安全吗?
- Redis的ACID
猜你喜欢

MS | Xie Liwei group found that mixed probiotics and their metabolites could alleviate colitis

Cuckoo filter for Chang'an chain transaction

【MATLAB项目实战】基于卷积神经网络与双向长短时(CNN-LSTM)融合的锂离子电池剩余使用寿命预测

Supplement the short board - Open Source im project openim about initialization / login / friend interface document introduction

Cloud platform monitoring system based on stm32+ Huawei cloud IOT design

无需人工先验!港大&同济&LunarAI&旷视提出基于语义分组的自监督视觉表征学习,显著提升目标检测、实例分割和语义分割任务!...

What does the inner structure of the neural network "alchemy furnace" look like? An interpretation of the thesis by the doctor of Oxford University

TCP拥塞控制详解 | 1. 概述

JUnit unit test

Vibrating liquid quantity detecting device
随机推荐
day10每日3题(1):逐步求和得到正数的最小值
Failed to upload hyperf framework using alicloud OSS
Redis migration (recommended operation process)
[从零开始学习FPGA编程-46]:视野篇 - 集成电路的发展与技术进步
5g is not flat and 6G is restarted. China leads wireless communication. What is the biggest advantage of 6G?
当一个程序员一天被打扰 10 次,后果很惊人!
Gui+sqlserver examination system
Knowing these commands allows you to master shell's own tools
JS tutorial electron JS is a good tool for designing powerful multi platform desktop applications
Solidus labs welcomes zhaojiali, former head of financial innovation in Hong Kong, as a strategic adviser
并发编程整体脉络
Oilfield exploration problems
How to separate jar packages and resource files according to packaging?
Ideal path problem
IAR engineering adapts gd32 chip
请指教同花顺软件究竟是什么?网上开户是否安全么?
【蓝桥杯集训100题】scratch辨别质数合数 蓝桥杯scratch比赛专项预测编程题 集训模拟练习题第15题
【MATLAB项目实战】基于卷积神经网络与双向长短时(CNN-LSTM)融合的锂离子电池剩余使用寿命预测
Learn about common functional interfaces
GUI+SQLServer考试系统