Posted on 1999-01-12
really simple problem.
I have a text file that contains a line of text followed by a /n character.
I want to open this file, and store the line of text into a variable without the /n character
open (FP, "<$questionFile");
$theQuestion = ????
how do I store the contents of the file (one line of text) into the variable $theQuestion above without the /n character being stored in the variable?