Is there a limitation on how many characters you can print to a file?

I created an procedure that creates a html page like this
vb Code:
  1. Print #FileNum, "</table>"
  2. Print #FileNum, "<hr />"
  3. Print #FileNum, "<hr />"
  4. Print #FileNum, "<table class=" & Chr(34) & "style8" & Chr(34) & " style=" & Chr(34) & "width: 100%" & Chr(34) & ">"
  5. Print #FileNum, " <tr>"
  6. Print #FileNum, "     <td class=" & Chr(34) & "style7" & Chr(34) & " style=" & Chr(34) & "width: 162px" & Chr(34) & "><strong>ITEM</strong></td>"
It just stops abruptly _ I cant figure out why. The above is just a sample form the middle of the procedure when I look at the html source - it just stops at about the same place but before the end. I've remmed out lines to see if it is the html but that it doesnt matter - it just stops writing to the file at the same place regardless of the code.