Thread: Help with I/O

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Aug 2002
    Posts
    5

    Help with I/O

    I am trying to get a program to write to multiple user selected files. I input the file names as an array of strings, but MVS doesn't let me use the array (or a string for that matter) as a file name. Here is a sample of my problem:

    Code:
    	vector<string> files(filenum);
    	cout<<"Please enter the name of the file(s) you wish to convert"<<endl;
    	for (int y=0;y<filenum;y++){
    		cin>>files[y];
    	}
    	for (y=0;y<filenum;y++){
    		ofstream openhtml(line);
    	}
    Sorry if this is a stupid question, but I'm all out of ideas. Thanks!

    edit=code tags
    Last edited by ericj551; 08-23-2002 at 12:31 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. asynchronized I/O == multiplexing I/O?
    By George2 in forum C Programming
    Replies: 1
    Last Post: 07-24-2006, 10:06 AM
  2. why page based I/O can improve performance?
    By George2 in forum C Programming
    Replies: 1
    Last Post: 06-12-2006, 07:42 AM
  3. Nonblocking I/O
    By fnoyan in forum Linux Programming
    Replies: 4
    Last Post: 11-29-2005, 04:37 PM
  4. Overlapped I/O and Completion Port :: Winsock
    By kuphryn in forum Windows Programming
    Replies: 0
    Last Post: 10-30-2002, 05:14 PM
  5. WSAAsyncSelect I/O Mode :: Winsock
    By kuphryn in forum Windows Programming
    Replies: 1
    Last Post: 05-12-2002, 03:23 PM