Created
June 26, 2013 09:18
-
-
Save HiromichiYamada/5866008 to your computer and use it in GitHub Desktop.
テキストを読み込んで1行ずつ書きだすPerlスクリプト。
文字列置換処理などを入れる前のベース。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
my $tgtFilename = "textToExport.txt"; | |
my $orgFilename = "textToImport.txt"; | |
open(ORG_TEXT, "<$orgFilename") or die("error :$!"); | |
open(TGT_TEXT, ">$tgtFilename") or die("error :$!"); | |
while (my $line = <ORG_TEXT>){ | |
# copy. | |
print TGT_TEXT $line; | |
} | |
close(TGT_TEXT); | |
close(ORG_TEXT); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment