I have a special .txt file to read from Java, and here’s a part of it:
absolute mutlak(IBM)(MS)
absolute address mutlak adres(IBM)
absolute device mutlak aygıt(IBM)
absolute positioned object mutlak konumlu nesne(MS)
absolute positioned paragraph mutlak konumlu paragraf(MS)
absolute positioning mutlak konumlama(IBM)
absolute priority mutlak öncelik(IBM)
Absolute reference Mutlak referans(MS)
abstract soyut(IBM)(MS)
first column is original and the second column is the description. Now I have to read original and description seperately and store in a hashtable. How would I do that?
Read the file line by line. For each line, find the index of the
" "substring (two spaces). Extract everything before the index and everything after. Trim both parts.If the separator is in fact a series of tabs, then use the same algorithm with
"\t"instead of" ".