Qt でファイルを読み込む。
読み込むファイルの準備:ビルドディレクトリの中に data.txt を作成する。
実行結果:
D:\qt\build-qtTest-Desktop_Qt_5_1_1_MinGW_32bit-Debug\debug\qtTest.exe を起動中...
0  :  "abcdefg" 
1  :  "あいうえお" 
2  :  "12345" 
3  :  "12345" 
全文読み込み:
実行結果:
D:\qt\build-qtTest-Desktop_Qt_5_1_1_MinGW_32bit-Debug\debug\qtTest.exe を起動中...
"abcdefg
あいうえお
12345
12345
 
0 件のコメント:
コメントを投稿