공부 기록

2021-04-30 18일차

뉴코딩 2021. 5. 3. 09:14
  • 코틀린 파일 쓰기

val path = "파일 생성 경로"

val text = "파일 내용"

val writer = FileWriter(path , true)

try{

writer.write(text)

}

catch(e: IOException){

}

finally{

writer.coles()

}