update code
Update code for read write file txt and bin