my $filename = 'c:\Users\a\Desktop\b\c\test_3.v';
open(FH, '<', $filename) or die "Format of bench file name: circuit_na
+me.v \n example : s1423.v\n";
while(<FH>)
{
print "Hello";
}
print "Hello too";
close(FH);
I am currently reading an input file. However I want to print out everything inside and outside the while loop into a new output text file. Ex: output.txt. How do I get all the printing to write into a new file? Ive been reading and did some search on the internet but still couldn't figure it out.