Page 1 of 1 1
Topic Options
#39968 - 2003-05-09 08:07 PM RedirectOutput
jhansenjr Offline
Fresh Scripter

Registered: 2002-08-31
Posts: 37
Loc: New Jersey
I'm trying to use redirect output to an .ini file but I keep getting a 0 in the .ini file.

RedirectOutput("%WINDIR%\Test.ini",1)

How can I get rid of the zero?

Thanks

Top
#39969 - 2003-05-09 08:25 PM Re: RedirectOutput
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Please read Why does the console display zeros and ones (amongst others)? . Secondly, the .INI file format is not a regular text-file format. You should only use .INI files in combination with READPROFILESTRING/WRITEPROFILESTRING.
_________________________
There are two types of vessels, submarines and targets.

Top
#39970 - 2003-05-09 09:38 PM Re: RedirectOutput
jhansenjr Offline
Fresh Scripter

Registered: 2002-08-31
Posts: 37
Loc: New Jersey
Ok Thanks. Now I need to know how to turn off the redirectoutput once I'm done with the redirection. I have some other info below the redirectoutput command and now the info that the users should see is writing to the .txt file. How do I stop redirecting and return control back to the display? Thanks
Top
#39971 - 2003-05-09 10:22 PM Re: RedirectOutput
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Please see the KiXtart Manual under REDIRECTOUPUT.
quote:
File name
A string that names the file to which to redirect the output. If this parameter is an empty string (""), output is redirected to the screen.



[ 10. May 2003, 03:08: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 1607 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.055 seconds in which 0.026 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org