Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Working with text files in PDK for .Net

I'm working with the portal development kit for .net.

Is there a way to work with text files located on the user's machine from inside of a portal component? I'd like to be able to create, modify and delete a small text file. The code I have currently builds fine, but when I run it in the portal, nothing is created.

This is the code I currently have in an ascx file:

string TextForFile;

TextForFile = "Hello";

FileInfo t = new FileInfo("C:/temp/TestFile.txt");

StreamWriter Tex =t.CreateText();



Former Member
Not what you were looking for? View more on this topic or Ask a question