Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   C++ (http://www.programmingforums.org/forum15.html)
-   -   CPP newbie, any way to make a call to a file for references? (http://www.programmingforums.org/showthread.php?t=14891)

Caitu Jan 8th, 2008 8:39 AM

CPP newbie, any way to make a call to a file for references?
 
For example, if I wanted to create something that would send a set amount of messages to mIRC, and I wanted the program to look in the text document fff.txt for this information.

A similar example is shown below, with notations.

"Hi, I'm a bot // First line, what I want it to say first. I do not want it to repeat this line.
This is an example // Second line, to be sent immediately after the first, I don't want this to be repeated either
Of how hopeless I am! // Third line, to be sent immediately after the second, nor this, etc.."

Using the postmessage function with calls to a text document, would this be possible?

And by the way, I know that there are easier ways to do this, especially since IRC already has a built in scripting tool. I want to do it that hard way. :icon_wink:

Salem Jan 8th, 2008 11:03 AM

Re: CPP newbie, any way to make a call to a file for references?
 
Yes, I think it would be possible for you to do that.


All times are GMT -5. The time now is 3:58 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC