Use stream to handle local file.
Remove an unused import.