-1

I'm trying to write in a CSV file situated in my res/raw resources. I can read it using

InputStream csvFile = getResources().openRawResource(R.raw.fichier_csv);

But I don't know how to write in it because this method return an InputStream.

Bhavesh Odedra
  • 10,990
  • 12
  • 33
  • 58
Ludo Lac
  • 11
  • 2

1 Answers1

1

you cant write to raw, you need to create a new file in code and read/write to that

How To Read/Write String From A File In Android

Community
  • 1
  • 1
Tomer Shemesh
  • 10,278
  • 4
  • 21
  • 44
  • Technically, this is an SO compliant answer as the fact that what the poster wants to do is not supported is a self-contained response to the question. The link is arguably only supporting material to provide an alternative. – Chris Stratton Apr 21 '15 at 18:15