Sign in to follow this  
Followers 0
gempie

Fileread from separator to separator

2 posts in this topic

Hi,

i want to read a txt file from separator sign to separator sign (TAB) and put everything in between in different strings. How would i do something like this?

text file looks like:

8:15:00 LYMF2 C.F. van de Meer 10-8-1980 V

8:30:00 SKELET J.A. van Boten 23-10-1921 M

8:30:00 SN M. Antho-Macadamia 18-2-1956 V

so i want in stringresult:

string 1: 08:15:00

string 2: LYMF2

String 3: C.F. van de Meer

String 4: 10-8-1980

String 5: V

String 6: 08:30:00

until end of file.

thnx

Share this post


Link to post
Share on other sites



Hi,

i want to read a txt file from separator sign to separator sign (TAB) and put everything in between in different strings. How would i do something like this?

text file looks like:

8:15:00 LYMF2 C.F. van de Meer 10-8-1980 V

8:30:00 SKELET J.A. van Boten 23-10-1921 M

8:30:00 SN M. Antho-Macadamia 18-2-1956 V

so i want in stringresult:

string 1: 08:15:00

string 2: LYMF2

String 3: C.F. van de Meer

String 4: 10-8-1980

String 5: V

String 6: 08:30:00

until end of file.

thnx

Pretty basic stuff --

1. FileReadToArray()

2. Loop thru that array, and for each line...

3. StringSplit($sLine, @TAB)

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0