English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Is it possible to read input data from a file (like C) in a javascript program? If not, how do they do it, now that C and Fortran are out of date?

2007-09-02 11:42:28 · 2 answers · asked by cidyah 7 in Computers & Internet Programming & Design

2 answers

First, C isn't dead :-)
You can't read and write with javascript, but you can manipulate other things to do it for you with javascript.

Here are some sites that explain.
Reading Files With JavaScript
http://www.expertsrt.com/tutorials/Rod/JSread.php

Reading Files With JavaScript using the applet
http://www.javascripter.net/faq/reading2.htm

2007-09-02 12:58:29 · answer #1 · answered by ? 6 · 1 1

Sure can!

it's called ajax. you can read any file from the file server.

with some tricks you can read files from the user's hard disk. (upload it then access via ajax)

But if you want to snoop around a user's machine.... you can't.

2007-09-02 12:13:54 · answer #2 · answered by jake cigar™ is retired 7 · 2 1

fedest.com, questions and answers