小编Inf*_*i68的帖子

从C#中的文本文件中读取

我有以下程序将(输出)信息发送到文本文件,但现在我想从文本文件中读取(输入).任何建议将不胜感激.我已经评论了一些"我认为"我需要做的事情; 但我不确定如何继续.

using System.Windows.Forms;
using System.IO;

namespace Input_Output
{
    public partial class Grades : Form
    {
        private StreamWriter output;

        private StreamReader input;


        public Grades()
        {
            InitializeComponent();
        }

        private void label4_Click(object sender, EventArgs e)
        {

        }

        private void btnCreate_Click(object sender, EventArgs e)
        {
            btnEnter.Visible = true;
            btnClose.Visible = true;
            txtFirst.Visible = true;
            txtLast.Visible = true;
            lblFirst.Visible = true;
            lblLast.Visible = true;
            listBox1.Visible = true;
            lblStatus.Visible = true;
            lblGrade.Visible = true;
            lblCourse.Visible = true;
            cmbID.Visible = true;
            lblID.Visible = true;
            txtCourse.Visible = …
Run Code Online (Sandbox Code Playgroud)

c# c#-4.0

25
推荐指数
3
解决办法
6万
查看次数

标签 统计

c# ×1

c#-4.0 ×1