Quantcast
Channel: C#タグが付けられた新着記事 - Qiita
Viewing all articles
Browse latest Browse all 9707

cscの作法 その66

$
0
0
概要 cscの作法、調べてみた。 csv読んでみた。 参考にしたページ サンプルコード using System; using System.Collections.Generic; using System.IO; using System.Text; public static class Program { public static void Main(params string[] args) { CSVReader reader = new CSVReader(new StreamReader("expense_item_sample.txt")); string[] getLine = null; while ((getLine = reader.ReadLine()) != null) { for (int index = 0; index < getLine.Length; index++) { getLine[index] = getLine[index].Replace(System.Environment.NewLine, "<br>"); } Console.WriteLine(string.Join("/", getLine)); } } } 以上。

Viewing all articles
Browse latest Browse all 9707

Trending Articles