aboutsummaryrefslogtreecommitdiff
path: root/stage2/Scaffold.scala
diff options
context:
space:
mode:
Diffstat (limited to 'stage2/Scaffold.scala')
-rw-r--r--stage2/Scaffold.scala3
1 files changed, 1 insertions, 2 deletions
diff --git a/stage2/Scaffold.scala b/stage2/Scaffold.scala
index 1f3d515..78242fc 100644
--- a/stage2/Scaffold.scala
+++ b/stage2/Scaffold.scala
@@ -7,8 +7,7 @@ trait Scaffold{
private def createFile( projectDirectory: File, fileName: String, code: String ){
val outputFile = projectDirectory ++ ("/" ++ fileName)
- outputFile.getParentFile.mkdirs
- Files.write( ( outputFile ).toPath, code.getBytes, StandardOpenOption.CREATE_NEW )
+ Stage0Lib.write( outputFile, code, StandardOpenOption.CREATE_NEW )
import scala.Console._
println( GREEN ++ "Created " ++ fileName ++ RESET )
}