Skip to content

Commit

Permalink
Update TarpitAn
Browse files Browse the repository at this point in the history
  • Loading branch information
RPiList authored Oct 24, 2021
1 parent 7f782ce commit 46fbbbb
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions TarpitAn
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,11 @@ var message6 = " Process finished. \r"

fun main() {


println(message3)
val inputStream2: InputStream = File(path + "\\" + fileName).inputStream()
val inputStream2: InputStream = File(path + File.separator + fileName).inputStream()
inputStream2.bufferedReader().forEachLine { Liste5.add(it) }

val inputStream: InputStream = File(path + "\\" + fileName2).inputStream()
val inputStream: InputStream = File(path + File.separator + fileName2).inputStream()

inputStream.bufferedReader().forEachLine { lineList.add(it) }
lineList.forEach { datenaufbereitung(it) }
Expand Down Expand Up @@ -89,7 +88,7 @@ fun analyse(){
val anzahlzeilen: Int = Liste1.count() -1

try {
val fw = FileWriter(path + "\\" + fileName3, true)
val fw = FileWriter(path + File.separator + fileName3, true)

for (i in 0..anzahlzeilen) {

Expand Down Expand Up @@ -183,9 +182,8 @@ fun analyse(){
"Average: " + zeit3 + System.getProperty("line.separator") +
"Longest in Tarpit: " + zeit4 + System.getProperty("line.separator") +
"Shortest in Tarpit: " + sekundenshortest.toString()

try {
val fw = FileWriter(path + "\\" + fileName4, true)
val fw = FileWriter(path + File.separator + fileName4, true)
fw.write(text)
fw.close()
} catch (e: IOException) {
Expand Down

0 comments on commit 46fbbbb

Please sign in to comment.