当前位置:网站首页>asp. Net read TXT file
asp. Net read TXT file
2022-07-05 13:37:00 【Bailu-】
One . read
string txt = System.IO.File.ReadAllText("*** Absolute path ***/onNumber.txt");
Two . Write
System.IO.File.WriteAllText("*** Absolute path ***/onNumber.txt", (Convert.ToInt32(txt) + 1) + "");
// Here is simply converting the data to numeric type and then adding 1, The front is the absolute path to read the content , Next is the data to be written
3、 ... and . follow-up
To create files manually , Or you can make a judgment , When the file does not exist , Create the file
边栏推荐
- DataPipeline双料入选中国信通院2022数智化图谱、数据库发展报告
- leetcode 10. Regular Expression Matching 正则表达式匹配 (困难)
- Idea设置方法注释和类注释
- Datapipeline was selected into the 2022 digital intelligence atlas and database development report of China Academy of communications and communications
- 私有地址有那些
- "Baidu Cup" CTF competition in September, web:sql
- What is a network port
- Personal component - message prompt
- 南理工在线交流群
- “百度杯”CTF比赛 九月场,Web:Upload
猜你喜欢
CloudCompare——点云切片
真正的缓存之王,Google Guava 只是弟弟
SAE international strategic investment geometry partner
FPGA learning notes: vivado 2019.1 add IP MicroBlaze
一网打尽异步神器CompletableFuture
Although the volume and price fall, why are the structural deposits of commercial banks favored by listed companies?
Don't know these four caching modes, dare you say you understand caching?
百度杯”CTF比赛 2017 二月场,Web:爆破-2
Shandong University Summer Training - 20220620
Could not set property 'ID' of 'class xx' with value 'XX' argument type mismatch solution
随机推荐
山东大学暑期实训一20220620
MMSeg——Mutli-view时序数据检查与可视化
"Baidu Cup" CTF competition in September, web:sql
49. Grouping of alphabetic ectopic words: give you a string array, please combine the alphabetic ectopic words together. You can return a list of results in any order. An alphabetic ectopic word is a
aspx 简单的用户登录
Catch all asynchronous artifact completable future
Go string operation
Talk about seven ways to realize asynchronous programming
C# 对象存储
[深度学习论文笔记]UCTransNet:从transformer的通道角度重新思考U-Net中的跳跃连接
APICloud Studio3 API管理与调试使用教程
Word document injection (tracking word documents) incomplete
4年工作经验,多线程间的5种通信方式都说不出来,你敢信?
[server data recovery] a case of RAID5 data recovery stored in a brand of server
数据泄露怎么办?'华生·K'7招消灭安全威胁
【每日一题】1200. 最小绝对差
Programmer growth Chapter 8: do a good job of testing
What happened to the communication industry in the first half of this year?
[深度学习论文笔记]使用多模态MR成像分割脑肿瘤的HNF-Netv2
Clock cycle