Thread: Reading a file
View Single Post
Old 05-04-2006, 07:47 AM   #17 (permalink)
coolman
Registered User
 
Join Date: Mar 2006
Posts: 25
coolman is on a distinguished road
got it working fully almost

Thanks i got it working finally but there one problem if the fields are to far apart in my text file then it dont insert the commas, but if the fields are close to togother den it insert the commas. but most of my text files will alway be far apart so i need some sort function dat need to include the all the white space and bring it close togother but i cant think of anything i been looking up the manual but i dont understand it


Code:
NUM,,,|FIRSTNAME|,SURNAME,|course,|
12400 COOL <to far away>WHATEVER CS
12500 MICHAEL <to far away> OWEN CS
12600 GEOGE FANNY CS
12700 CARMEN LIGHT IT
12800 PET ROOF
so i need to bring the fields close togother as well as inserting the commas,
coolman is offline   Reply With Quote