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, The GoNix Initiative, Elite Web Gamers, Back of the Web, EveryDay Helper, VNC Web Design & Development
Our Sponsors
Sponsor Advertisements help keep UGN Security Online.



Sponsor Advertisements help keep UGN Security Online.

Want to earn prizes for clicking online advertisements? Join Rewards1.com.
Latest Postings
Hello Everyone
by Cyrez
Today at 05:45 PM
Tracfone ESN Generator
by Zanvin Green
01/18/12 03:31 PM
Latest Reviews
Signup Today!
Welcome to the UGN Security forums! You are currently viewing our forums as a guest which gives you limited access to most of our discussions and access to other features.

By joining our free community you will have access to post topics, communicate privately with our users (PM), respond to polls, upload content, and access many other features. Registration is fast, simple, and absolutely free; so please join our community today!

If you have any problems with the registration process or your account login, please contact us.
Topic Options
Rate This Topic
#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

Sponsor Advertisements help keep UGN Security Online.



Sponsor Advertisements help keep UGN Security Online.
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




Featured Member
Registered: 03/02/02
Posts: 133
Forum Stats
7175 Members
46 Forums
20072 Topics
55238 Posts

Max Online: 1567 @ 04/25/10 05:20 AM
Top Posters
UGN Security 13237
Gizmo 7188
§intå× 3255
SilentRage 1273
Ice 1146
pergesu 1136
Infinite 1041
jonconley 955
Girlie 908
unreal 860
Newest Members
buster9, Zanvin Green, mike g, btkilla41, vien muc
7174 Registered Users
Who's Online
1 registered (Cyrez), 358 Guests and 288 Spiders online.
Key: Admin, Global Mod, Mod
Latest News


Donate
  Get Firefox!
Get FireFox!