<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Ok, so i am creating a program for my school's football team and in one part i need to store a list of variables (their name, height, weight, and grade) in a txt file to bring up later. i know how to create and read from files ( file = open("file_name", ''w/r/a") ). But what i need to do is create a individual file for each member on the roster as they add them in. here is my code:<br><br>name = self.name.GetValue() &lt; gets their name from the text box<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; stats = str(self.name.GetValue()) + "\n"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt; gets their name to put into the file<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; stats += str(self.height.GetValue()) + "\n"&nbsp;&nbsp; &lt; gets their height<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; stats += str(self.weight.GetValue()) + "\n"&nbsp; &lt; gets their weight<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; stats += str(self.grade.GetValue()) + "\n"&nbsp;&nbsp;&nbsp; &lt; gets their grade<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; info = open(name + ".txt", "r") &lt; this creates the file for it to all go into using the name we get from above to name it.<br><br>But when a try and write into the file wright after that last line it wont let me so is there anything i'am missing or should change?<br><br /><hr />Windows Live™: Keep your life in sync. <a href='http://windowslive.com/explore?ocid=TXT_TAGLM_WL_BR_life_in_synch_062009' target='_new'>Check it out.</a></body>
</html>