Your browser does not seem to support CSS. If images appear below, please disregard them.
toggle
February
S M T W T F S
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29
Sponsored Links
Latest Postings
Topic Options
Rate This Topic
#17201 - 05/06/05 10:24 PM How do you open files with C++ through Windows?
Joined: May 2005
Posts: 4
chav-tastic bob Offline
Junior Member
chav-tastic bob Offline
Junior Member

Joined: May 2005
Posts: 4
England
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

Top
Sponsored Links
#17202 - 05/07/05 06:04 PM Re: How do you open files with C++ through Windows?
Joined: Mar 2002
Posts: 93
zenon Offline
Junior Member
zenon Offline
Junior Member

Joined: Mar 2002
Posts: 93
Sweden
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
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
Top
#17203 - 05/14/05 06:29 PM Re: How do you open files with C++ through Windows?
Joined: May 2005
Posts: 4
chav-tastic bob Offline
Junior Member
chav-tastic bob Offline
Junior Member

Joined: May 2005
Posts: 4
England
Thanks

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

Top

Member Spotlight
Gremelin

Gremelin
Portland, OR; USA
Posts: 7,194
Joined: February 2002
Show All Member Profiles 
Forum Statistics
Forums46
Topics43,952
Posts79,126
Members2,157
Most Online1,567
Apr 25th, 2010
Top Posters(All Time)
UGN Security 37,115
Gremelin 7,194
§intå× 3,255
SilentRage 1,273
Ice 1,146
pergesu 1,136
Infinite 1,041
jonconley 955
Girlie 908
unreal 860
Newest Members
Herbert_Sherbert, codemauve, Lillysdragon1984, Brewwit, boa
2157 Registered Users
Who's Online Now
0 registered members (), 0 guests and 0 spiders.
Latest News