
-----------------------------------
MasterCard
Sat May 14, 2016 9:33 am

Can someone help me output into a file!
-----------------------------------
Code:

% output section
cls

teamNumberCounter := 0
teamNumberCounter1 := 1

put "Team 1"
for testingResult : 1 .. totalNumberOfPlayers
    if teamNumberCounter = 4 then
        teamNumberCounter1 := teamNumberCounter1 + 1
        put skip, "Team ", teamNumberCounter1
        teamNumberCounter := 0
    end if

    put playerNameAndPositionRandomOrder (testingResult)
    teamNumberCounter := teamNumberCounter + 1

end for


I need: Whatever gets outputted goes into a file!

How would I do this!?

-----------------------------------
Dreadnought
Sun May 15, 2016 5:09 pm

Re: Can someone help me output into a file!
-----------------------------------
Have a look at the following pages of documentation: [tdoc]open[/tdoc], [tdoc]put[/tdoc], [tdoc]get[/tdoc] and [tdoc]close[/tdoc] (maybe [tdoc]seek[/tdoc] as well).
