working with general file