input/output Files
selection by min in cpp