using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace CShapeTest
{
class Start
{
static void Main(string[] args)
{
// StreamReader读取文本文件
// 读取一行
//StreamReader reader = new StreamReader("hand.png");
//string str = reader.ReadLine();
//Console.WriteLine(str);
//reader.Close();
// 读取到结束
//StreamReader reader = new StreamReader("Skill.json");
//string str = reader.ReadToEnd();
//Console.WriteLine(str);
//reader.Close();
// 读取一个字符
StreamReader reader = new StreamReader("Skill.json");
char ch = (char)reader.Read();
Console.WriteLine(ch);
reader.Close();
Console.ReadLine();
}
}
}
C#_StreamReader读取文本文件
最新推荐文章于 2024-09-14 01:32:23 发布