# --------- Load necessary Modules use HTML::Parse; use HTML::FormatText; # --------- Open File for Reading print "File to Read : "; $ifile=<>; chomp($ifile); $file = "$ifile" . ".txt" ; print $file; open (FILE, "$file") or die "Can't open $file: $!\n"; select((select(FILE), $/ = undef)[0]); my $contents = <FILE>; close(FILE); # -------- Rip HTML Tags $plain_text = HTML::FormatText->new->format(parse_html($contents)); print $plain_text; # -------- Writing to Files print "File to Write to : "; $file = <>; chomp($file); $file = $file . ".txt"; open(DAT,">$file") || die("Cannot Open File"); print DAT "$plain_text"; close(DAT);
In reply to Write Large data by aliroshan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |