# Load Numaric Value from External Text File

**URL:** <https://forum.kirupa.com/t/load-numaric-value-from-external-text-file/67394>\
**Category:** flash\
**Created:** [October 15, 2004, 12:44pm UTC](https://forum.kirupa.com/t/load-numaric-value-from-external-text-file/67394 "2004-10-15T12:44:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flasherpk](https://avatars.discourse-cdn.com/v4/letter/f/13edae/32.png) [@flasherpk](https://forum.kirupa.com/u/flasherpk)\
**Post date:** [October 15, 2004, 12:44pm UTC](https://forum.kirupa.com/t/load-numaric-value-from-external-text-file/67394/1 "2004-10-15T12:44:55Z")

</div>

Dear Friends,

I have facing a problem to get numaric Value from External Text file.  
actuly i have some images in Folder and i want load images randamly and i don’t know how much files in Folder in Future. so i try to get images no. from text file which have a no of Images in Folder.

img.text file:

&img=20

FlashFile.

loadVariablesNum(“img.txt”);  
s=randam(img)+1;

this code is pick string value from text but i want it in Numaric value.  
kidnly help me if u have any problem to understand this problem then ask me.  
thnx
