# how can i insert text file to my project? visual basic 2008

Page 1 of 1

## 5 Replies - 9159 Views - Last Post: 29 December 2011 - 08:21 AMRate Topic: //<![CDATA[ rating = new ipb.rating( 'topic_rate_', { url: 'http://www.dreamincode.net/forums/index.php?app=forums&module=ajax&section=topics&do=rateTopic&t=261314&amp;s=d1dd07dd4b2ac458af1e8f425d64331f&md5check=' + ipb.vars['secure_hash'], cur_rating: 0, rated: 0, allow_rate: 0, multi_rate: 1, show_rate_text: true } ); //]]>

### #1 marwaa

Reputation: -3
• Posts: 28
• Joined: 29-November 10

# how can i insert text file to my project? visual basic 2008

Posted 28 December 2011 - 11:53 PM

hi

I have a problem with this I do this text file
I learned how to read information from it and the elements
But how can I include it to send it to my Dr.
Do you put him in the Zip file with my Project
I do this (Project then add elemnt)
Or make it in desktop
???

```when the form is loaded a text file named “ITEMS.txt” contains all information about the items should be read. The maximum number of items in the file is nine and maximum quantity for each item is four.  The file includes:

•Item’s image name
•Quantity
•List of sizes
•price
Example
Shirt.Png  3     S   M   L  13

```

Is This A Good Question/Topic? 0

## Replies To: how can i insert text file to my project? visual basic 2008

### #2 Atli

Reputation: 3853
• Posts: 6,356
• Joined: 08-June 10

## Re: how can i insert text file to my project? visual basic 2008

Posted 29 December 2011 - 01:46 AM

Are you just asking how to include this text file in your Visual Studio project?

How to: Add Existing Items to a Project

P.S.
I've moved this to VB.NET. Try to post your questions in the correct forums please.

### #3 marwaa

Reputation: -3
• Posts: 28
• Joined: 29-November 10

## Re: how can i insert text file to my project? visual basic 2008

Posted 29 December 2011 - 03:38 AM

if i want to add text file
can i do it in this file (pin>> debuge)??

### #4 stayscrisp

• フカユ

Reputation: 1024
• Posts: 4,268
• Joined: 14-February 08

## Re: how can i insert text file to my project? visual basic 2008

Posted 29 December 2011 - 04:00 AM

You're not making much sense. Please take time over your responses so that we can fully understand what it is you are asking.

### #5 Atli

Reputation: 3853
• Posts: 6,356
• Joined: 08-June 10

## Re: how can i insert text file to my project? visual basic 2008

Posted 29 December 2011 - 04:09 AM

I assume you mean "bin/Debug"? (It helps to get these sort of "minor" details right...)

That should be the working directory for your applications while you are debugging them, so you should be able to read your text file by name alone if you put it in there. Either that or the root directory for your project. I can't remember if VS 2008 used that as the CWD or not.

### #6 Curtis Rutland

• （╯°□°）╯︵ (~ .o.)~

Reputation: 4742
• Posts: 8,440
• Joined: 08-June 10

## Re: how can i insert text file to my project? visual basic 2008

Posted 29 December 2011 - 08:21 AM

Working directory is always the path the executable is located in, unless you change it in code.

On the other hand, if you use fully qualified paths, it's a non-issue.