LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-07-2005, 03:33 PM   #1
bertlef
Member
 
Registered: Dec 2004
Location: Costa Rica
Distribution: Ubuntu
Posts: 69

Rep: Reputation: 17
open a url in c++


Hi, I'm learning some basic programing, I am currently learning how to work with files, I can open a regular *.txt file, copy it's contents into another *.txt and save it.

I use:

fstream test1("test1.txt", ios::in); // to open the file

ofstream out1("out1.txt", ios:ut); //to create the new file

But I would like to know how to open a url.

thanks in advance
 
Old 01-07-2005, 04:10 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you might find libcurl handy.

http://curl.haxx.se/libcurl/cplusplus/

and if you want to use more direct methods of access, it's source code is a good place to look for the basic inner workings.
 
Old 01-07-2005, 04:27 PM   #3
bertlef
Member
 
Registered: Dec 2004
Location: Costa Rica
Distribution: Ubuntu
Posts: 69

Original Poster
Rep: Reputation: 17
Well, i've been looking at the web page, looks like that's what I need.
Thanks, if I have any further questions, will let you know :-)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
open a URL from shell plisken Linux - General 3 11-10-2005 01:43 AM
Can't open URL links in Thunderbird unixfreak Linux - Newbie 4 10-18-2004 11:00 AM
It's so slow to open a url j.vilon Debian 12 10-04-2004 12:32 PM
how to use php open and url antony_csf Programming 7 09-27-2004 12:54 AM
KDE open URL from desktop kris.kj.jacobs Linux - Networking 3 06-11-2001 12:15 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration