質問編集履歴

1

わかりずらい点があったため、先頭にループ文を追記しました。

2021/07/12 08:49

投稿

basscl
basscl

スコア15

test CHANGED
File without changes
test CHANGED
@@ -28,23 +28,29 @@
28
28
 
29
29
  ```ここに言語を入力
30
30
 
31
- using (OpenFileDialog openFileDialog = new OpenFileDialog())
31
+ for(int i=0;i<3000;i++){
32
32
 
33
- {
33
+ FileName=List[i];
34
34
 
35
- openFileDialog.FileName = "-------\FileName.csv";
35
+ using (OpenFileDialog openFileDialog = new OpenFileDialog())
36
36
 
37
- using (StreamReader readCsvObject = new StreamReader(openFileDialog.FileName))//この行の時間がかかる
37
+ {
38
38
 
39
- {
39
+ openFileDialog.FileName =FileName;
40
40
 
41
- while (!readCsvObject.EndOfStream)
41
+ using (StreamReader readCsvObject = new StreamReader(openFileDialog.FileName))//この行の時間がかかる
42
42
 
43
- {
43
+ {
44
44
 
45
- var readCsvLine = readCsvObject.ReadLine();
45
+ while (!readCsvObject.EndOfStream)
46
46
 
47
+ {
48
+
49
+ var readCsvLine = readCsvObject.ReadLine();
50
+
47
- }
51
+ }
52
+
53
+ }
48
54
 
49
55
  }
50
56