Try using something other than numbers in your test file. It seems like /play is treating the first line as a line count (like $read does).

//var %x = 1 | while (%x <= 10) { write playtest.txt line %x | inc %x }

/play playtest.txt

-genius_at_work