I was trying to use the following code to read lines from a file. But when reading a file, the contents are all in one line: line_num=0 File.open('xxx.txt').each do...
  • May 20, 2022
  • 0 Comments
How are \r and \n different? I think it has something to do with Unix vs. Windows vs. Mac, but I’m not sure exactly how they’re different, and which...
  • May 18, 2022
  • 0 Comments