# Loading txt file from a specific path

**URL:** <https://forum.kirupa.com/t/loading-txt-file-from-a-specific-path/297286>\
**Category:** Uncategorized\
**Created:** [September 29, 2009, 4:31pm UTC](https://forum.kirupa.com/t/loading-txt-file-from-a-specific-path/297286 "2009-09-29T16:31:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ramsy27](https://avatars.discourse-cdn.com/v4/letter/r/839c29/32.png) [@ramsy27](https://forum.kirupa.com/u/ramsy27)\
**Post date:** [September 29, 2009, 4:31pm UTC](https://forum.kirupa.com/t/loading-txt-file-from-a-specific-path/297286/1 "2009-09-29T16:31:47Z")

</div>

ok, so i want to load a txt file from a path that i choose (local on the pc or a network path ).

for example :

on (release) {  
loadText = new loadVars();  
loadText.load(“c:\documents and settings\mc\vil.txt”);  
loadText.onLoad = function(success) {  
if (success) {  
// trace(success);  
newsBox.html = true;  
newsBox.htmlText = this.Info;  
}  
};  
}

or

on (release) {  
loadText = new loadVars();  
loadText.load("\fileserver name\folder\vil.txt");  
loadText.onLoad = function(success) {  
if (success) {  
// trace(success);  
newsBox.html = true;  
newsBox.htmlText = this.Info;  
}  
};  
}

can this be done ? :thumb:
