streamlined reading/writing file values