Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[fstream] write in file

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Bizarro
I post too much
Reputation: 0

Joined: 01 May 2007
Posts: 2648

PostPosted: Fri Aug 22, 2008 5:21 am    Post subject: [fstream] write in file Reply with quote

i was wondering if a file is currently being used/loaded,
can i still use fstream to write on it(ie insert more bytes or replaces some bytes)?

_________________

w8 baby.com Banner contest, Come join NOW!!
Check us out for Prize deatils
Back to top
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Fri Aug 22, 2008 6:05 am    Post subject: Reply with quote

You'll have to close it first.
Back to top
View user's profile Send private message
kitterz
Grandmaster Cheater Supreme
Reputation: 0

Joined: 24 Dec 2007
Posts: 1268

PostPosted: Fri Aug 22, 2008 8:07 am    Post subject: Reply with quote

Symbol wrote:
You'll have to close it first.


No. You can open up many fstreams of the same file, writing to it at which ever time you want.
Back to top
View user's profile Send private message Send e-mail
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Fri Aug 22, 2008 8:19 am    Post subject: Reply with quote

Don't you have to close it first? how come you don't get access denied?

Edit:
Quote:
After all necessary operations on a file have been performed, it can be closed (or disassociated) by calling member close. Once closed, the same file stream object may be used to open another file.
Back to top
View user's profile Send private message
kitterz
Grandmaster Cheater Supreme
Reputation: 0

Joined: 24 Dec 2007
Posts: 1268

PostPosted: Fri Aug 22, 2008 11:07 am    Post subject: Reply with quote

Symbol wrote:
Don't you have to close it first? how come you don't get access denied?

Edit:
Quote:
After all necessary operations on a file have been performed, it can be closed (or disassociated) by calling member close. Once closed, the same file stream object may be used to open another file.


the same file stream it is talking about is the "variable" that contains the file handle. you can only open one file in each "variable" (fstream).

That is what the statement says.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites