Java application for point of sale system using flat files for data storage