Reads a live stream and copies its contents to a file