Loading .txt file variable

Hello,

I’m loading variables from a .txt file. I have a numeric value, but flash seems to treat it like text (I cannot use the number for a calculation) How can I fix this?

txt file:
&itemNum=10

flash file:
loadVariablesNum(“files.txt”, 0);
pageNum=itemNum/5
trace(pageNum)

It says it’s NaN, but when i trace itemNum, it will trace “10”