I have a file that looks something like this:
hellothisisline1
andthisisline2hi
yepthisistheline
I want to concatenate the lines so that into a single string
hellothisisline1andthisisline2hiyepthisistheline
print "Input file name \n";
open (FILE, <>);
$string = "";
while($line = <FILE>) {
$string = $string . "" . $line;
}
print "$string \n";
But that didn't seem to work and the output is the file in its original format.