# Load a URL from a txt file

**URL:** <https://forum.kirupa.com/t/load-a-url-from-a-txt-file/64335>\
**Category:** Uncategorized\
**Created:** [September 15, 2004, 9:44am UTC](https://forum.kirupa.com/t/load-a-url-from-a-txt-file/64335 "2004-09-15T09:44:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![who](https://avatars.discourse-cdn.com/v4/letter/w/cdc98d/32.png) [@who](https://forum.kirupa.com/u/who)\
**Post date:** [September 15, 2004, 9:44am UTC](https://forum.kirupa.com/t/load-a-url-from-a-txt-file/64335/1 "2004-09-15T09:44:43Z")

</div>

From this code…

```auto
 
my_ag = new LoadVars();
my_ko.sendAndLoad("http://myURL",my_ag, "POST"); 

```

I would like to load the URL - [http://myURL](http://myurl/) - from a txt file…

Do you have any suggestions?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 15, 2004, 1:21pm UTC](https://forum.kirupa.com/t/load-a-url-from-a-txt-file/64335/2 "2004-09-15T13:21:16Z")

</div>

I finger it out…

In the txt file i am writing

```auto
 urltext=myURL

```

At actionscript

firts frame  
System.useCodepage = true;  
loadVariablesNum(“textChangeURL.txt”,0);

also there is a dynamic field named urltext

When I am calling the URL…

```auto
 
my_ag = new LoadVars();
my_ko.sendAndLoad([color=red]"[/color][color=red]http://"+urltext[/color],my_ag, "POST"); 

```
