Read parameters from file