File must end with newline character