gempie Posted August 1, 2007 Share Posted August 1, 2007 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 Link to comment Share on other sites More sharing options...
PsaltyDS Posted August 1, 2007 Share Posted August 1, 2007 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 V8:30:00 SKELET J.A. van Boten 23-10-1921 M8:30:00 SN M. Antho-Macadamia 18-2-1956 Vso i want in stringresult:string 1: 08:15:00string 2: LYMF2String 3: C.F. van de MeerString 4: 10-8-1980String 5: VString 6: 08:30:00until end of file.thnxPretty 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now