Updated file reader with CSV parsing