Results 1 to 6 of 6

Thread: Embedded text file

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2010
    Location
    Greece
    Posts
    58

    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

  2. #2
    PowerPoster
    Join Date
    Oct 2010
    Posts
    2,141

  3. #3

    Thread Starter
    Member
    Join Date
    Sep 2010
    Location
    Greece
    Posts
    58

    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.

  4. #4
    Sinecure devotee
    Join Date
    Aug 2013
    Location
    Southern Tier NY
    Posts
    6,598

    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.

  5. #5
    PowerPoster
    Join Date
    Oct 2010
    Posts
    2,141

    Re: Embedded text file

    Quote Originally Posted by stratos View Post
    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.

  6. #6

    Thread Starter
    Member
    Join Date
    Sep 2010
    Location
    Greece
    Posts
    58

    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
  •  



Click Here to Expand Forum to Full Width