Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you append to a file?

Status
Not open for further replies.

fugigoose

Programmer
Jun 20, 2001
241
US
I'm making a chat program in director by writing text to files on my server. I need to know how to append things to a txt file. This is the script i'm using:

file("myfile.txt").open(#read:1, #write:1, #create:1)

Or something like that. I want to be able to write multiple lines in a file at seperate times and suck them back in and slap them into a textbox. Is this probable or is there a much simpler way to do a chat prog?
 
Look into the multiuser server! Non registered version is limited in the number of people it supports (I think its still 100 or something) but chat will be very easy. I got a semi working 3D chat package going in about an hour where each person got a 3d block that they could move about and say things.
 
Thats cool. That is what im using, at least the commands. But when i create a projector it doesn't recognize the file command, Even when I add a crapload of multiserver extras. I don't think my idea will work anyway. If you don't mind i would like to see yur chat prog or someone elses. I'm really interested in making a big chatroom with 3d rooms and characters.

THNX!
 
Sorry, I did it in the Beta of 8.5, it doesn't work in the release version (I actually only have ver 8 so I can't even open it, the beta no longer works)

for a chat program you don't want to use files, the way I did it was to send a message to anyone within range and then just display the text in a field member. Start with just 2 users with just a text box each and get the sending messages working then work up adding new users and an interface to send to specific people. Once thats going move over to 3D. No point spending time on your great 3D world if unless you know you can get a good 2D chat going.



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top