in reply to Exporting from flatfile database
#!/usr/bin/perl -w use strict; open IN, "infile.dat"; open OUT, ">data.csv"; while (<IN>) { chomp $_; my @fields = split(/|/, $_); my $newLine = join(",", @fields); print OUT "$newLine\n" } close IN; close OUT;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Exporting from flatfile database
by grep (Monsignor) on Dec 26, 2001 at 11:34 UTC | |
by naive (Novice) on Jan 23, 2002 at 12:50 UTC |