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
Gremelin
Gremelin
Portland, OR; USA
Posts: 7,204
Joined: February 2002
Forum Statistics
Forums41
Topics33,839
Posts68,797
Members2,177
Most Online73,244
Nov 9th, 2025
Latest Postings
Top Posters
UGN Security 41,392
Gremelin 7,204
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
Dartur 1
Powered by UBB.threads™ PHP Forum Software 8.0.0