add FileToSlice function
Merge pull request #50 from bronze1man/pr-FileToSlice

add FileToSlice function