File: use java.nio.Files
Moved code to os-serial