![]() |
|
#1
|
|||
|
|||
Help With Fstream and system()Hello, i'm trying to make a multiplayer (console) verson of texas holdem for my school. So far i've been using text files, the problem i have run into is that i need to have upto 5 programs talking to eachother. So if i want it to be one players turn my plan was to just while loop a text file until its time for them, but what i've run into is a problem with text file sharing. The programs get hung up that they cant read/write becouse its in use. So if anyone has any suggestions i would greatly appreciate it even if its a whole new concept on multiplayer thanks alot.
|
|||
|
#2
|
||||
|
||||
|
You need to open and close the files as fast as possible.
When you get an error on an open, wait maybe a few milliseconds and try again. __________________
During the election they said Obama could only be elected when pigs fly. Well, we currently have an epidemic of Swine Flu. Coincidence? |
|
#3
|
|||
|
|||
|
Quote:
How do i do that? and will it mostly only error on open and not close? |
|
#4
|
||||
|
||||
|
Quote:
Code:
Code:
Quote:
__________________
During the election they said Obama could only be elected when pigs fly. Well, we currently have an epidemic of Swine Flu. Coincidence? |
Recent GIDBlog
Programming ebook direct download available by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The