/    Sign up×
Community /Pin to ProfileBookmark

Read and write to file using JavaScript

Is there a command or way so that you can make JavaScript read from file and then write to file?

Because I heard that someone said you can write to file or read from file using JavaScript.

Your help will be appreciate and Thank you for your help.

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@GollumJul 24.2003 — I'm pretty sure this is something you can't do.

for security purposes, a browser limits a lot of Javascript - computer interactions including reading and writing to files. If this were not the case, any web-site you went to could potentially trash your computer, search it for personal/financial details, etc.
Copy linkTweet thisAlerts:
@super_dcJul 24.2003 — You need to use server side Java, or try using ASP. I've used ASP to read/write data to an access database. If you search the web for java file write you can find same code. A quick forum thread I found was http://www.computing.net/programming/wwwboard/forum/5792.html
×

Success!

Help @Kvang spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.21,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...