SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So I have a set of plain text files included in some directories within sandboxed solution. I want to use these text files to programmatically insert data to SharePoint Online using an event receiver.

I'm just looking for a simple way to read these files within my solution, anyone know of one?

share|improve this question
Where are the files located in the solution? – David Lozzi Apr 29 '13 at 20:17
Well, are they are just within a package. But I can move them to anywhere else within the solution if it makes things easier. – ButtDrivenDevelopment Apr 29 '13 at 20:41
up vote 3 down vote accepted

Depending on where you store the files, you may not have access to them. Sandbox solutions do not have access to the local file system (see more restrictions here: You would have to store the files in a library to gain access to them.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.