StreamReaderの読み方

StreamReaderの読み方

C#で利用されるクラスの1つである「StreamReader」の読み方を掲載してます。

読み⽅

ストリーム・リーダー」と読みます。

英訳

「Stream」は「流れ」という意味があります。

StreamReaderとは

C#で、テキストファイルを内容を全て読み込んだり、1行ずつ読み込むことができるクラスとなります。

using System;
using System.Collections.Generic;

namespace sebeeapp
{
    class Program
    {
        static void Main(string[] args)
        {
           StreamReader str = new StreamReader("sample.txt");
    }
}