jQuery - How to get the data from txt file -


if have following data in text.txt file, how these data , split array

txt

arr[0] =>there arr[1] =>is arr[2] =>no arr[3] =>jquery arr[4] =>specific arr[5] =>explode arr[6] =>method, arr[7] =>use arr[8] =>instead arr[9] =>javascript arr[10] =>native 

you have use eval(). in order split file have change it's content little bit.

txt file should (see quotes , kind of delimeter - comma in case):

arr[0] => "there", arr[1] => "is", arr[2] => "no", arr[3] => "jquery", arr[4] => "specific", arr[5] => "explode", arr[6] => "method", arr[7] => "use", arr[8] => "instead", arr[9] => "javascript", arr[10] => "native", 

see working example (check browser's console output).


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -