Hi,
all I want to do is to write a JavaScript that can read lines from a simple text file and display them. I've done it like as follows:
This code works on my Windows system but it doesn't work on my Linux system -> the ActiveXObject cannot be created.Code:fileObject = new ActiveXObject("Scripting.FileSystemObject"); fileText = fileObject.GetFile("./Test.txt"); // ....
I want to write a JavaScript that is Platform independent and can read lines from a file. Is there any possibility to do that?
Any help would be great because i am a newbie in JavaScript ;-)
Thanks in advance
AcidBurnX




Reply With Quote