質問編集履歴
1
試したこと、追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -40,4 +40,44 @@
|
|
40
40
|
|
41
41
|
|
42
42
|
|
43
|
+
```ここに言語を入力
|
44
|
+
|
45
|
+
List<string[]> mistakeList = new List<string[]>();
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
public void OnClick()
|
50
|
+
|
51
|
+
{
|
52
|
+
|
53
|
+
StreamReader readermistake = new StreamReader("mistake2.csv", Encoding.GetEncoding("Shift_JIS"));
|
54
|
+
|
55
|
+
while (readermistake.Peek() != -1) {
|
56
|
+
|
57
|
+
string linemistake = readermistake.ReadLine();
|
58
|
+
|
59
|
+
mistakeList.Add(linemistake.Split(','));
|
60
|
+
|
61
|
+
}
|
62
|
+
|
63
|
+
readermistake.Close();
|
64
|
+
|
65
|
+
for (int i = 0; i <25 ; i++) {
|
66
|
+
|
67
|
+
string mis;
|
68
|
+
|
43
|
-
|
69
|
+
mis = mistakeList[i][0];
|
70
|
+
|
71
|
+
int mis2 = int.Parse(mis);
|
72
|
+
|
73
|
+
mis2 = mis2 + 1;
|
74
|
+
|
75
|
+
mis = mis2.ToString();
|
76
|
+
|
77
|
+
//ここでCSVファイルの値をmisの値に書き換え処理を行いたいと考えております
|
78
|
+
|
79
|
+
}
|
80
|
+
|
81
|
+
}
|
82
|
+
|
83
|
+
```
|