# sendAndLoad with a local file

**URL:** <https://forum.kirupa.com/t/sendandload-with-a-local-file/235725>\
**Category:** flash\
**Created:** [August 14, 2007, 9:55am UTC](https://forum.kirupa.com/t/sendandload-with-a-local-file/235725 "2007-08-14T09:55:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thegaffer](https://avatars.discourse-cdn.com/v4/letter/t/977dab/32.png) [@thegaffer](https://forum.kirupa.com/u/thegaffer)\
**Post date:** [August 14, 2007, 9:55am UTC](https://forum.kirupa.com/t/sendandload-with-a-local-file/235725/1 "2007-08-14T09:55:55Z")

</div>

I’m trying to load a text file from a Local Network Drive rather than from the web.

I have the following code which worked with a sendAndLoad web address and adapted it to try and get it from the drive (s:)

I have tried the following:

loadText.uniq= Math.floor(Math.random()\*10000000);  
loadText.sendAndLoad(“file:///s|/screen.txt”, loadText, “GET”);  
loadText.target = this;  
loadText.onLoad = function() {  
this.target.HTML.htmlText = loadText.TEXT;  
this.target.Image.loadMovie(this.Image);  
};

And also with the following:

loadText.sendAndLoad(“s:\screen.txt”, loadText, “GET”);

But I keep getting the error - Error opening URL “file:///s|/screen.txt”

Where am I going wrong? Your helped would be much appreciated.
