Jump to content

Access Text File from CodeLab Programmatically?


Recommended Posts

Hi All,

I want to write a Plugin which reads a text file and take two parameters startpoint(x,y) endpoint(x,y) from it and draw a line between these two points. I want to know that is it possible to read a text file programmatically in codelab?


Well, i figured it out myself. I am posting this for other newbies like me. The problem was that I was trying to include namespaces in the CodeLab somehow but it is not possible. In CodeLab if you have to use file I/O functionality, you have to declare object like this; System.IO.StreamReader reader. So whatever object you want to declare and if codelab is giving error that "namespace not found" then just write full class name along with required namespaces prefix.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...