i have a text file to read and it contains information relevant to the program. the text in the file is formatted such that it is separated by colons.
name : place
name : place
name : place
etc
basically, i would like to know if java has something built in that will let me get the name and place and store them into separate strings.. i thought of storing each line into a string and searching for the colon : and making a string of whatever was before and after and then locating the next line and doing the same thing for each subsequent line. but im hoping that java has some sort of method that will do this for me.
thanks for the help, this is really getting to me..
name : place
name : place
name : place
etc
basically, i would like to know if java has something built in that will let me get the name and place and store them into separate strings.. i thought of storing each line into a string and searching for the colon : and making a string of whatever was before and after and then locating the next line and doing the same thing for each subsequent line. but im hoping that java has some sort of method that will do this for me.
thanks for the help, this is really getting to me..
