I have a text file listing a bunch of text books (its an 8mb .txt file!!) I am supposed to write script to read in the file and write the information into a database we have setup. Each book is a row in the database. The textfile looks like so:
Book_Title: some title here
ISBN: some ISBN
.........................
Book_Title: the title
(etc...)
Each book is separated by the periods, and the "Key: Value" pairs are the database column name before the colon and the value to store after the colon. How shoul I go about reading in the information? I tried using scanner and sayiying the delimiter is ":", but there is a field "Updated_On: ... at 10:30:28" .. Any other suggestions?