Get the App
SLTechnology News&Howtos  ›  Network Security  › 

C # reads the code of 2 functions of the text file

Shulou Source: shulou.com Published: 2022-06-01 02:58:30 10月04日 Update

The code process often used code collection, the following code content is about C#read text file 2 function code.

Textreader tr = new StreamReader("date.txt");

Console.WriteLine(tr.ReadLine());

tr.Close();

StreamReader reader = new StreamReader("date.txt");

Console.WriteLine(reader.ReadLine());

reader.Close();

Tags: Code functions files text clips content procedures Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno macOS Shulou Technology Shulou Information NVidia