Hiroshi Saito <HiroshiSaito / pob.org> さんは、 Sat, 11 Dec 1999 11:21:02 +0900 頃 "[ruby-list:19408] Re: 改行コード" について 書きました。 > > じぶんのところでは、 > --- test.rb ------ > a = "abcdef\n" > print a > txt = open( "text2","w") > txt.print a > ------------- > DOS窓>ruby test.rb > text > > の結果、 > text "6162 6364 6566 0a" (LF) > text2 "6162 6364 6566 0d0a" (CRLF) これは、text=binary でマウントしているからだと思います。 text!=binary でマウントすると text2 と同じ結果になりませんか? > ruby 1.4.2 (1999-09-18) [i386-cygwin] ---- 馬越