in reply to How can one input a textfile from desktop just created?

Using strict would explain part of your problem. See Re: **HomeWork** Printing the found input from an array. Closing "j.txt" and reopening it for reading -- before you try to read from it -- would make your homework almost worthy of a decent grade.

Come, let us reason together: Spirit of the Monastery