Commit 46fbbbb 1 parent 7f782ce commit 46fbbbb Copy full SHA for 46fbbbb
File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -28,12 +28,11 @@ var message6 = " Process finished. \r"
28
28
29
29
fun main() {
30
30
31
-
32
31
println(message3)
33
- val inputStream2: InputStream = File(path + "\\" + fileName).inputStream()
32
+ val inputStream2: InputStream = File(path + File.separator + fileName).inputStream()
34
33
inputStream2.bufferedReader().forEachLine { Liste5.add(it) }
35
34
36
- val inputStream: InputStream = File(path + "\\" + fileName2).inputStream()
35
+ val inputStream: InputStream = File(path + File.separator + fileName2).inputStream()
37
36
38
37
inputStream.bufferedReader().forEachLine { lineList.add(it) }
39
38
lineList.forEach { datenaufbereitung(it) }
@@ -89,7 +88,7 @@ fun analyse(){
89
88
val anzahlzeilen: Int = Liste1.count() -1
90
89
91
90
try {
92
- val fw = FileWriter(path + "\\" + fileName3, true)
91
+ val fw = FileWriter(path + File.separator + fileName3, true)
93
92
94
93
for (i in 0..anzahlzeilen) {
95
94
@@ -183,9 +182,8 @@ fun analyse(){
183
182
"Average: " + zeit3 + System.getProperty("line.separator") +
184
183
"Longest in Tarpit: " + zeit4 + System.getProperty("line.separator") +
185
184
"Shortest in Tarpit: " + sekundenshortest.toString()
186
-
187
185
try {
188
- val fw = FileWriter(path + "\\" + fileName4, true)
186
+ val fw = FileWriter(path + File.separator + fileName4, true)
189
187
fw.write(text)
190
188
fw.close()
191
189
} catch (e: IOException) {
You can’t perform that action at this time.
0 commit comments