Project

General

Profile

Bug #7979

Updated by nobu (Nobuyoshi Nakada) about 11 years ago

=begin 
 Calling (({File.foreach('somefile.txt', "r")})) File.foreach('somefile.txt', "r") on a windows platform adds newline characters after each lower case (({'r'})), 'r', splitting the read lines after each instance. 
 Reading the following file 

   
 """ 
 This contains r characters 
   
 Wreck it Ralph 
 """ 

 outputs  

    

 """ 
 This contains r 
    
  character 
   
 s 
   
 Wr 
   
 eck it Ralph 
 =end """

Back