I've a file containing which I upload to Azure blobstorage, the file looks like this:
TAR-2312;12;;123;1A1195061;231
SSS 2637218;2/9;
1A1321268;1231195061
My trigger processes the file, but I get The filename, directory name, or volume label syntax is incorrect: "path.../TAR-2312;12;;123;1A1195061;231 SSS 2637218;2/9;1A1321268;1231195061
It happens in the highlighted call
public static XDocument Convert(Stream blob)
{
StreamReader reader = new StreamReader(blob);
var contentOfFile = reader.ReadToEnd();
***List<string> lines = File.ReadLines(contentOfFile).Take(2).ToList();***
Any ideas why this is and how to fix it?