I\'m trying to download a txt file from a subfolder within a folder in a document library.
I\'m using camlQuery to achieve this. Unfortunately, i get no content of t
Export straight to output file ... I think this is the easiest and simplest way of doing it.
FileInformation fInfo = File.OpenBinaryDirect(currentSiteContext, ServerRelativeURL);
System.IO.FileStream outPutFile = System.IO.File.OpenWrite(string.Concat(OutputPath, "\\", DocumentName));
fInfo.Stream.CopyTo(outPutFile);
fInfo.Stream.Close();
outPutFile.Close();