Hi I am having a problem with making my CSV file readable. I am currently trying to do it using PERL. Here's my line of code:
#!/usr/bin/perl
$infile = @ARGV[0];
$outfile = @ARGV[1];
open(INFILE,"$infile") || die "cannot open input file : $infile : ";
open(OUTFILE,">$outfile") || die "cannot open output file";
$/="undef";
while(<INFILE>)
{
$temp=$_;
}
close(INFILE);
print OUTFILE "\x{feff}".$temp;
close(OUTFILE);
However, the CSV file is still unreadable. Is there anything that I can do to insert BOM? Thanks!