Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

An update to Anim8or, v1.00b, is available with a few bug fixes. Get your copy HERE. See the "ReadMe" file for details.

Author Topic: console output  (Read 2851 times)

csf

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • CSF On The Web
console output
« on: December 17, 2008, 08:41:07 pm »

I am trying to output to the console, with out luck. Could some one show me an example of code that will output text to the console? 
Logged
AKA coaster sim. fan on the old boards

Kubajzz

  • Flying Platypus
  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 548
  • Little doggie ate my avatar...
    • View Profile
Re: console output
« Reply #1 on: December 17, 2008, 09:06:55 pm »

Here's a simple example. You first have to declare a "file" type variable, then open the console and print your text... And close the console of course...
Code: [Select]
file $output;

$output.open("$console", "w");

$output.print("Some text");

$output.close;
Logged

csf

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • CSF On The Web
Re: console output
« Reply #2 on: December 18, 2008, 03:37:50 am »

Thanks for the help. It worked!
Logged
AKA coaster sim. fan on the old boards