# Loading a number from a .txt file

**URL:** <https://forum.kirupa.com/t/loading-a-number-from-a-txt-file/109867>\
**Category:** Uncategorized\
**Created:** [May 10, 2004, 10:34am UTC](https://forum.kirupa.com/t/loading-a-number-from-a-txt-file/109867 "2004-05-10T10:34:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Floppy](https://avatars.discourse-cdn.com/v4/letter/f/a587f6/32.png) [@Floppy](https://forum.kirupa.com/u/Floppy)\
**Post date:** [May 10, 2004, 10:34am UTC](https://forum.kirupa.com/t/loading-a-number-from-a-txt-file/109867/1 "2004-05-10T10:34:57Z")

</div>

How can I load a number from a .txt file ? I want to verify if that number is equal to another variable. For example my variable is 4, and the number in the text file is 5. How can I verify if they are eqal or not? I suppose I have to load that number into another variable, but I don’t know how. I would really appreciate some help. Hope I was clear enough.  
Thanks in advance.
