Riccardo Daria

Riccardo Daria

  • 1.7k
  • 74
  • 5k

Error saving txt file on external Storage MOBILE PHONE

Feb 2 2024 9:24 AM

I need to create a text file on external STORAGE of an android mobile phone:

 

i use this code:

string fileName = Path.Combine(Android.OS.Environment.ExternalStorageDirectory.AbsolutePath, "Test.txt");

And get thi error:

Android does not contain a definition for 'OS'

TAHNKS to every one


Answers (4)