Hey, my current project requires me when called to know information about something
i want to have the user to be able to select something from the drop down menu then press next, after this it, it knows what the user pressed and displays the info about this, and uses the info ect..
lets say i want to know how many doors a car has..
the user selects the car from the drop down menu, press' next and it reads the info about that car off of a .txt file or somthing.. from there i can use this info any way i want
how do i do this? is it possible to look for keywords on a .txt file then read them?
like the .txt file is:
how could i Search for say "Car2" then read off whats under it?
or is there a simpler way to do this? and not create a million veriables for each car in the program by hand?
i'd rather read off somthing
if not, is there a simple way to do it with types or somthing?
basicly when i need the info i want to be able to pull it up, this can be achived alot of ways, but i want to find the easyest way before i atempt to do this cause i'm talking 20-70 different 'Cars'.
i want to have the user to be able to select something from the drop down menu then press next, after this it, it knows what the user pressed and displays the info about this, and uses the info ect..
lets say i want to know how many doors a car has..
the user selects the car from the drop down menu, press' next and it reads the info about that car off of a .txt file or somthing.. from there i can use this info any way i want
how do i do this? is it possible to look for keywords on a .txt file then read them?
like the .txt file is:
Car1 ---- 2 Doors 1 Engine Car2 ---- 4 Doors 1 Engine
how could i Search for say "Car2" then read off whats under it?
or is there a simpler way to do this? and not create a million veriables for each car in the program by hand?
i'd rather read off somthing
if not, is there a simple way to do it with types or somthing?
basicly when i need the info i want to be able to pull it up, this can be achived alot of ways, but i want to find the easyest way before i atempt to do this cause i'm talking 20-70 different 'Cars'.