how can i accept input interactively while running a program , my program useses files?