search in text file (javascript)

hi im trying to find a way to search in a txt file on the computer…

it needs to find 4 lines in my Client database… like:
Client number , name , city , email

1, "name", "city", "email"
2, hans hanson, Copenhagen, cake@live.dk
.... and so on

it needs to search for the client nr.
and split the variables op in 4 like:
var 1 = clientnr
var 2 = name
var 3 = city
var 4 = email

you think this is posable and can you help me with that??

anyone?

Look at -

  1. TextAsset
  2. System.IO.StringReader()
  3. String.Split()

If they are basic text lines also look at String.IndexOf(String)