In a program am getting one input say name....
From a file i read value line by line: say file contains...
hello
hai
If i want to print like
hello name in batch file
hai name in batch file
How to do this?
In a program am getting one input say name....
From a file i read value line by line: say file contains...
hello
hai
If i want to print like
hello name in batch file
hai name in batch file
How to do this?
How about a Perl Solution:
#!/usr/bin/perl -w
my $file = "file.txt";
open(INFO,"<$file") or die "can't open file" ;
while(<INFO>)
{
chomp $_;
print "$_ name in batch file\n" ;
}