OPEN "input.txt" FOR INPUT AS #1 INPUT #1, a, b, c d = a + b + c CLOSE #1 OPEN "output.txt" FOR OUTPUT AS #1 PRINT #1, d