![]() |
|
#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. __________________
Cow: You're a lawyer too? Mooseblood (mosquito): Ma'am, I was already a bloodsucking parasite. All I needed was a briefcase! |
|
#3
|
|||
|
|||
|
Quote:
How do i do that? and will it mostly only error on open and not close? |
|
#4
|
||||
|
||||
|
Quote:
Code:
Code:
Quote:
__________________
Cow: You're a lawyer too? Mooseblood (mosquito): Ma'am, I was already a bloodsucking parasite. All I needed was a briefcase! |
Recent GIDBlog
First week of IA training by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The