Skip to content

Commit

Permalink
fix: use java writer
Browse files Browse the repository at this point in the history
  • Loading branch information
betarixm committed Nov 27, 2023
1 parent b55d83c commit 58c9109
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/main/scala/Block.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package kr.ac.postech.paranode.core

import org.apache.logging.log4j.scala.Logging

import java.io.{BufferedOutputStream, FileOutputStream}
import scala.io.Source
import scala.reflect.io.Directory
import scala.reflect.io.File
Expand Down Expand Up @@ -47,7 +48,7 @@ class Block(val records: LazyList[Record]) extends AnyVal {

def writeTo(path: Path): File = {
val file = File(path)
val writer = file.bufferedWriter()
val writer = new BufferedOutputStream(new FileOutputStream(file.jfile))

try {
toChars.foreach(writer.write(_))
Expand Down

0 comments on commit 58c9109

Please sign in to comment.