摘要:
一、从控制台读取东西代码片断:using System;class TestReadConsole{ public static void Main() { Console.Write(Enter your name:); string strName = Console.ReadLine(); Console.WriteLine( Hi + strName); }}二、读文件代码片断:using System; using System.IO; public class TestReadFile { public static void Main(String[] args)... 阅读全文