DownloadString skips newline characters
问题 I want to import text data from Google Finance, and I use this http address as a parameter to DownloadString http://www.google.com/finance/getprices?i=1200&p=1d&f=d,o,h,l,c,v&df=cpct&q=AAPL . However, the resulting string misses any newline characters, so it is really difficult to parse. Any ideas? 回答1: The line ends returned from the stream are \n opposed to the default Windows line ends \r\n (which is represented in Environment.NewLine on Windows). Try to split on all of the possible