My purpose is to know which char is used as row terminator, whether \n or \r\n. So I need to first get the file as a string and the find whether there are \n or \r\n inside the string. When use get-content, it already splits the file into lines as array.
↧