Using a .txt file Resource in VB

Posted by Tony C on Stack Overflow See other posts from Stack Overflow or by Tony C
Published on 2010-04-18T14:54:27Z Indexed on 2010/04/18 15:03 UTC
Read the original article Hit count: 442

Filed under:
|

Right now i have a line of code, in vb, that calls a text file, like this:

Dim fileReader As String
    fileReader = My.Computer.FileSystem.ReadAllText("data5.txt")

data5.txt is a resource in my application, however the application doesn't run because it can't find data5.txt. I'm pretty sure there is another code for finding a .txt file in the resource that i'm overlooking, but i can't seem to figure it out. So does anyone know of a simple fix for this? or maybe another whole new line of code? Thanks in advance!

© Stack Overflow or respective owner

Related posts about vb.net

Related posts about visual-studio