/    Sign up×
Community /Pin to ProfileBookmark

Need help loading a file

hey everyone , I’m relatively new to javascripting. Basically what im trying to do is load a text file from inside my users folder. Im using XMLHttpRequest.open to accomplish this. The script works fine as long as the text file is within the directory where the html page exists. However , the text file I want to load will be outside of the scope of the project folder. ive tried the following url’s

file:///C:/Users/Owner/AppData/Roaming/Test/test.txt

file://C:/Users/Owner/AppData/Roaming/Test/test.txt

C:/Users/Owner/AppData/Roaming/Test/test.txt

C:UsersOwnerAppDataRoamingTesttest.txt

I have tried this straight from the project folder , and through my local host. Still nothing happens. Is there a way to accomplish this ?

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@A1ien51Aug 06.2009 — Doubt you will get it to work, you are probbaly getting permission denied errors.
Copy linkTweet thisAlerts:
@attackrabbitauthorAug 06.2009 — could you recommend a more appropriate language or platform to use that would work in the browser ? Im trying to create a flash tracer like plug in for firefox , I know this can be done because the existing flash tracer loads a flashlog.txt file output to from the flash player.
×

Success!

Help @attackrabbit 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 6.17,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...