Thread: Working out some code to Write information from a 'console' to a word document

  1. #1
    Registered User
    Join Date
    Feb 2006
    Posts
    6

    Working out some code to Write information from a 'console' to a text document

    Hi,
    I'm trying to extend a 'console' much like the one found in quake etc so that it writes the information that is added to it throughout the game to a text document so that an outside program can search this file for a certain string. I know where to add the code but i'm not sure how to start working out the code. I think the language used is C++ or very similar. Below is a copy of the code in .ini file where i need to add this code.

    Code:
     [Engine.Engine]
    GameRenderDevice=D3DDrv.D3DRenderDevice
    AudioDevice=Galaxy.GalaxyAudioSubsystem
    NetworkDevice=IpDrv.TcpNetDriver
    DemoRecordingDevice=Engine.DemoRecDriver
    Console=UTMenu.UTConsole
    Language=int
    GameEngine=Engine.GameEngine
    the relevant part is the
    Code:
     Console=UTMenu.UTConsole
    I know this is really a game programming question but i thought people within the C++ forum would have done much more work on just purely making little programs or bits of code to do things like this.

    Any help or ideas would be very useful because I'm very new to all this programming stuff!
    Last edited by superflygizmo; 02-14-2006 at 04:56 AM.

  2. #2
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,688
    Im not too sure how it works, but the fstream header reads infromation from a text file and imports it into the cpp code. Look at the tutorials on this site under C++ to find out more.

    Another way you could do it is to hard-code it, but that would take up a lot of wasted time

  3. #3
    pwns nooblars
    Join Date
    Oct 2005
    Location
    Portland, Or
    Posts
    1,094
    Answered this question in the game programming forum.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 3
    Last Post: 02-24-2009, 08:49 PM
  2. Replies: 8
    Last Post: 01-18-2008, 04:06 AM
  3. Trying to eject D drive using code, but not working... :(
    By snowfrog in forum C++ Programming
    Replies: 3
    Last Post: 05-07-2005, 07:47 PM
  4. Going out of scope
    By nickname_changed in forum C++ Programming
    Replies: 9
    Last Post: 10-12-2003, 06:27 PM
  5. Just one Question?
    By Irish-Slasher in forum C++ Programming
    Replies: 6
    Last Post: 02-12-2002, 10:19 AM