Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

How to read a file as a string instead of an array?

$
0
0

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.


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>