Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: May 2005
Posts: 4
C
Junior Member
Junior Member
C Offline
Joined: May 2005
Posts: 4
i.e. what command do you use?

Could anyone give me an example?
Say I wanted to open C:\mypic.jpg and C:\myapp.exe , both in Windows (using C++)

thanks

Sponsored Links
▼ Sponsored Links ▼ ▲ Sponsored Links ▲
Joined: Mar 2002
Posts: 93
Junior Member
Junior Member
Joined: Mar 2002
Posts: 93
Well.. that depends, you can open a file in binary or non-binary mode.
I supose you want to open the files in binary mode, yes? Annyway

----------------------------
#include<fstream.h>
void main()
{
fstream filestr;
filestr.open ("test.txt", fstream::binary);
}


- "It's not my code that's useless
it's you loosers being unable to
apprecitate it because of your
lack of skills!"
/zenon - C++ master Apprentice
Joined: May 2005
Posts: 4
C
Junior Member
Junior Member
C Offline
Joined: May 2005
Posts: 4
Thanks

(I *did* try looking through diff C++ guides first: most proved utterly useless)


Link Copied to Clipboard
Member Spotlight
None yet
Forum Statistics
Forums41
Topics33,840
Posts68,858
Members2,176
Most Online3,253
Jan 13th, 2020
Latest Postings
Top Posters
UGN Security 41,392
Gremelin 7,203
§intå× 3,255
SilentRage 1,273
Ice 1,146
pergesu 1,136
Infinite 1,041
jonconley 955
Girlie 908
unreal 860
Top Likes Received
Ghost 2
Girlie 1
unreal 1
Crime 1
Ice 1
Powered by UBB.threads™ PHP Forum Software 8.0.0