Stream-based file reader