我做與代碼donwload OneDrive txt文件:閱讀TXT下載OneDrive
VAR downloadOperationResult =等待cliente.DownloadAsync(idOfFile);
using (Stream downloadStream = downloadOperationResult.Stream)
{
if (downloadStream != null)
{
//download completed
}
}
,我使用下面的代碼讀取下載的文件(在註釋中的:「//下載完成」)
using (StreamReader sr = new StreamReader(downloadStream))
{
string text = sr.ReadToEnd();
}
但不是閱讀TXT被讀取文件屬性。 輸出:
{
"id":"file. + idFile
"from":{
"name":"myname",
"id":the id
},
"name": name of file
"description": ""
"parent_id": id of folder
(...)
任何人都可以幫助我嗎? (我開發的Windows Phone)