Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cffile Read

Status
Not open for further replies.

diembi

Programmer
Joined
Sep 22, 2001
Messages
238
Location
ES
I am new to cold fusion, and I know how to read/write to files, but the problem I am having is searching files. My file contains:

Employee_ID Job_Title Job_StartDate Job_EndDate

My problem is whenever an employees changes job titles, I append to the file the new informaiton, so it is possible to have the same Employee_ID twice (but with different job titles, start date, and end date).

Is there a way to search this file and get all the results?

Thanks in advance.
 
Hi,

Logic :

Get the contents of the file -> transfer that contents to the array.
-> Each element of the array will represent each line of the file.
-> Seperate out each sub - element from that array element(row) i.e. Employee_id job_title start_date end_date
-> Compare two employee_ids and display the corresponding results.

You might have to use:
ListToArray() , ArraytoList() ......

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top