Use nio for file io
use nio for file io