Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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. –  user994679 Apr 29 '13 at 20:41
add comment

1 Answer

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: http://msdn.microsoft.com/en-us/library/gg615454.aspx#BKMK_LowPrivilegeToken). You would have to store the files in a library to gain access to them.

share|improve this answer
add comment

Your Answer

 
discard

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.