新石器Wiki

近年はシリコン(石)から進化した便利なもので溢れる時代。そんな気になった事や試した事など記す。

ユーザ用ツール

サイト用ツール


programing:cpp_builder:cpp_builder-tstreamreader


**文書の過去の版を表示しています。**

TStreamReaderを使ったUTF-8のファイルを読み込み

コーディング例

    String fname = L""C:\\test\\sample.txt";
 
    TStreamReader* fs = new TStreamReader(fname, TEncoding::UTF8, true, 1024);
    while (fs->EndOfStream == false)
    {
        UnicodeString s = fs->ReadLine();
        ShowMessage(s);
    }
    fs->Close();

参考

programing/cpp_builder/cpp_builder-tstreamreader.1580804727.txt.gz · 最終更新: 2020/02/04 17:25 by yoko