I need to write a program that will tell IE to open a webpage of my choice. The reason I need this is because it is one part of a larger program. Could anyone please help me? Thank you.
I need to write a program that will tell IE to open a webpage of my choice. The reason I need this is because it is one part of a larger program. Could anyone please help me? Thank you.
faq.
CProgramming FAQ
Caution: this person may be a carrier of the misinformation virus.
Thanks. One more question:
Is it possible to read a range of characters. Like say I want to read character 5-10 from a text file. How would I do that?
Something like that ought to get the job done. Basically, you read the first 5 characters in but do nothing with them; then read in the characters you really want. This approach will go to hell in a hurry, however, if characters aren't where you think they're supposed to be. Instead I suggest reading in data up to a delimiter.Code:ifstream fin("myfile.txt"); char ch; char * buffer [6]; for(int i = 0; i < 5; ++i) { fin >> ch; } getline(buffer, 5);
FAQ
"The computer programmer is a creator of universes for which he alone is responsible. Universes of virtually unlimited complexity can be created in the form of computer programs." -- Joseph Weizenbaum.
"If you cannot grok the overall structure of a program while taking a shower, you are not ready to code it." -- Richard Pattis.
Shouldn't that be:Originally Posted by joshdick
Code:ifstream fin("myfile.txt"); char ch; char buffer[6]; for(int i = 0; i < 5; ++i) { fin >> ch; } fin.getline(buffer, 6);
Last edited by 7stud; 04-25-2005 at 07:47 PM.