Writing/reading patient info from file