例如:我在手機里的Pictures檔案夾里放了一個 test.txt 檔案,如何用app去讀取這個檔案呢?
uj5u.com熱心網友回復:
string fileName = Path.Combine(Environment.SpecialFolder.MyPictures, "test.txt");bool b = File.Exists(fileName);
if (!b)
return false;
string txt= File.ReadAllText(fileName);
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/19901.html
標籤:Xamarin技術
