I have a text file setup called client.txt
inside it has

Halusa Decorations|Streamers|455892|$3.50
Kellys Floral|Frangipani|270272|$2.00

-

Im using Listview in Report mode i was wondering how to grab each item e.g company|item|productid|cost into and put them into the Columnheaders
| Company Name | Product | Product ID | Price |
Halusa Decorat.. | Stream..| 455892.....| $3.50|

Using the Open, Write Functions

Any help would be great :)

hey.. good afternoon..
i think you just need to read the textfile line per line then for you to get the line you want then use the SPLIT function in vb make the delimiter"|" so it will split the string into array of string..

i hope i help in any ways..

hey.. good afternoon..
i think you just need to read the textfile line per line then for you to get the line you want then use the SPLIT function in vb make the delimiter"|" so it will split the string into array of string..

i hope i help in any ways..

Thank you, you solved my problem

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.