Use stdin if no filename provided