read source from file