UGN Security Forums
My ProfileMember DirectoryLogin
Search our ForumsView our FAQView our Site Rules
View our CalendarView our Active TopicsGo to our Main Page

UGN Security Store
 

Network Sites UGN Security, Elite Web Gamers, Back of the Web, EveryDay Helper, VNC Web Design & Development
July
Su M Tu W Th F Sa
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 30 31
Our Sponsors
Latest Postings
Comcast upgrades Upload Speed!
by Gizmo
Today at 04:00 PM
Robert Moore aka MooreR PC Magazine Subscription
by Gizmo
06/22/08 01:36 PM
How to write a GUI with C++ in windows?
by Murakami Kakason
06/18/08 06:21 AM
Podcasting, ideas and interests...
by ZER0_DECEPTION
06/16/08 07:43 AM
PHP -MVC(Model, View, Control) overview
by §intå×
06/09/08 05:07 AM
Vote for President
by ZER0_DECEPTION
06/06/08 07:46 AM
Notepad++ 4.9.2 - open source text editor
by Gizmo
06/06/08 01:42 AM
Topic Options
#17201 - 05/06/05 06:24 PM How do you open files with C++ through Windows?
chav-tastic bob Offline
Junior Member

Registered: 05/06/05
Posts: 4
Loc: 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
Our Sponsors
Sponsor Our Sponsors

Top  
#17202 - 05/07/05 02:04 PM Re: How do you open files with C++ through Windows?
zenon Offline
Junior Member

Registered: 03/31/02
Posts: 93
Loc: 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 02:29 PM Re: How do you open files with C++ through Windows?
chav-tastic bob Offline
Junior Member

Registered: 05/06/05
Posts: 4
Loc: England
Thanks

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

Top



Forum Stats
6899 Members
45 Forums
10167 Topics
44858 Posts

Max Online: 677 @ 06/30/07 10:06 PM
Top Posters
Gizmo 6894
§intå× 3241
UGN Security 3113
IceMyst 1445
SilentRage 1273
Ice 1146
pergesu 1134
Infinite 1039
jonconley 954
Girlie 903
Newest Members
real-along, Murakami Kakason, die, ReduX, UknownWarrior
6898 Registered Users
Who's Online
0 Registered (), 9 Guests and 19 Spiders online.
Key: Admin, Global Mod, Mod
Latest News
IRC Server Funding
by Gizmo
07/01/08 02:48 PM
Fixed: Front Page - News Display
by Gizmo
06/25/08 11:25 AM


Donate

Get the Google FireFox Toolbar
Get Firefox!
Get FireFox!