read fro file fucn began