#!/bin/env tclsh source lib.tcl setup ? puts {Part 1: } while {[gets $input line] != -1} { } close $input puts "1: $" puts "" puts {Part 2: } puts "2: $"