<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
<font face="Franklin Gothic Medium"><br id="ecxFontBreak">I'm trying to code a program that retrieves data from a seperate file but according to my program, the seperate file is empty when I know it clearly isn't. It's a txt file and here are its contents:<BR> <BR>120<br>74<br>57<br>44<br>12<br><BR>I thought that maybe the problem was the code I had written but even when I try and read from the file in an interactive session in the Python Shell, it does the same thing. I open it in read mode and assign to a variable like so:<BR> <BR>scoresFile=open('highScores.txt','r')<BR> <BR>But whenever I try to say read from it:<BR> <BR>scoresFile.read()<BR> <BR>It comes up with a blank string:<BR> <BR>' '<BR> <BR>Can anyone help me?<BR> <BR> <BR>Myles Broomes<BR></font>                                         </div></body>
</html>