当前位置:网站首页>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
边栏推荐
猜你喜欢

MySQL - database query - sort query, paging query
![[notes of in-depth study paper]uctransnet: rethink the jumping connection in u-net from the perspective of transformer channel](/img/b6/f9da8a36167db10c9a92dabb166c81.png)
[notes of in-depth study paper]uctransnet: rethink the jumping connection in u-net from the perspective of transformer channel

Nantong online communication group

Intranet penetration tool NetApp

南理工在线交流群

Data Lake (VII): Iceberg concept and review what is a data Lake

Although the volume and price fall, why are the structural deposits of commercial banks favored by listed companies?

Shandong University Summer Training - 20220620

SAE international strategic investment geometry partner

STM32 reverse entry
随机推荐
MySQL get time
Address book (linked list implementation)
记录一下在深度学习-一些bug处理
Datapipeline was selected into the 2022 digital intelligence atlas and database development report of China Academy of communications and communications
不知道这4种缓存模式,敢说懂缓存吗?
redis6主从复制及集群
Lb10s-asemi rectifier bridge lb10s
Intranet penetration tool NetApp
Difference between avc1 and H264
华为推送服务内容,阅读笔记
Backup and restore of Android local SQLite database
从外卖点单浅谈伪需求
C object storage
Matlab paper chart standard format output (dry goods)
#从源头解决# 自定义头文件在VS上出现“无法打开源文件“XX.h“的问题
Summary and arrangement of JPA specifications
Programmer growth Chapter 8: do a good job of testing
APICloud Studio3 WiFi真机同步和WiFi真机预览使用说明
Prefix, infix, suffix expression "recommended collection"
go 数组与切片