reads from file
fixed format error