mastering-akka
mastering-akka copied to clipboard
chapter 6 - samples folder Framing.delimiter(ByteString("\n"), Integer.MAX_VALUE))
was throwing errors about "100" string not being able to convert toInt.
Need to add carrage return on Windows
Framing.delimiter(ByteString("\r\n"), Integer.MAX_VALUE))
also things like this i added
val sys = System.getProperty("os.name") val inPath = if (sys.contains("Windows")) FileSystems.getDefault.getPath(file.getPath.drop(1)) else FileSystems.getDefault.getPath(file.getPath)
Windows seems to have a backslash preceding the path.