This is the code I tried:
FileWriter outFile = new FileWriter(getAssets().open("USCOUNTIES"),append);
But it gives this error while compiling: "The method getAssets() is undefined for the type class1"
What is the correct usage in this scenario?