|
-
Mar 18th, 2014, 02:07 PM
#1
Thread Starter
Member
Embedded text file
Hello guys!
I am trying to attach/ embed a text file to a project. How can I do that?
To be more specific, I would like to attach a text file to a project and when I make
the .exe file I want to include the file into the program...
Best
stratos
-
Mar 18th, 2014, 02:30 PM
#2
-
Mar 18th, 2014, 03:37 PM
#3
Thread Starter
Member
Re: Embedded text file
Thanks for the help. Code works fine with just one problem...
I have written 5 lines which don't appear all of them at once.. I have to click
every time the button to appear each of them. How do i solve this?
I have set the textbox properties to multiline but it didn't help.
-
Mar 18th, 2014, 03:46 PM
#4
Re: Embedded text file
Don't read one line at a time.
Look at the code.
Do you see where it Reads a line (does a ReadLine).
Perhaps change that to something that will Read all Lines, such as ReadToEnd.
Last edited by passel; Mar 18th, 2014 at 03:50 PM.
-
Mar 18th, 2014, 03:48 PM
#5
Re: Embedded text file
 Originally Posted by stratos
Thanks for the help. Code works fine with just one problem...
I have written 5 lines which don't appear all of them at once.. I have to click
every time the button to appear each of them. How do i solve this?
I have set the textbox properties to multiline but it didn't help.
Sorry, but I have lost my NSA security clearance and can no longer tap into your computer view your code.
You will therefore, have to post your code if you want me to make an educated guess as to what is incorrect.
When replying, please click on the "Go Advanced" button (wait for it to load) and then click on the "#" button to insert the code tags. Then insert your code between those tags.
-
Mar 18th, 2014, 03:50 PM
#6
Thread Starter
Member
Re: Embedded text file
Yep, I found it! I change it to 'ReadtoEnd' and worked fine.
Thanks for the support!
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|