6
十二月

Read a file

   Posted by: admin   in 104(上)

string filename = args[0];
StreamReader sr = new StreamReader(filename);
string line = sr.ReadLine();
while (line != null && line.Length > 10)
{
    string ACODE_ICD9_1 = line.Substring(130, 3);
    Console.WriteLine(line);
     line = sr.ReadLine();
}
sr.Close();

bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

Tags: , , ,

This entry was posted on 星期日, 十二月 6th, 2015 at 17:10:46 and is filed under 104(上). You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a reply

Name (*)
Mail (will not be published) (*)
URI
Comment