file input

This is a discussion on file input within the C++ Programming forums, part of the General Programming Boards category; do i need to use these headers Code: #include <iostream> #include <cstdlib> #include <string> using namespace std; int main() { ...

  1. #1
    Registered User
    Join Date
    Sep 2003
    Posts
    3

    file input

    do i need to use these headers

    Code:
    #include <iostream>
    #include <cstdlib>
    #include <string>
    using namespace std;
    
    int main()
    {
      ifstream infile(input.txt");//create an instance
    }//end main

  2. #2
    Novice C++ Programmer
    Join Date
    Nov 2003
    Posts
    96
    I think you should reply to your other thread about this instead of making a new one. Will help get better responses

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. File transfer- the file sometimes not full transferred
    By shu_fei86 in forum C# Programming
    Replies: 13
    Last Post: 03-13-2009, 12:44 PM
  2. opening empty file causes access violation
    By trevordunstan in forum C Programming
    Replies: 10
    Last Post: 10-21-2008, 11:19 PM
  3. sequential file program
    By needhelpbad in forum C Programming
    Replies: 80
    Last Post: 06-08-2008, 01:04 PM
  4. Totally confused on assigment using linked lists
    By Uchihanokonoha in forum C++ Programming
    Replies: 8
    Last Post: 01-05-2008, 03:49 PM
  5. what does this mean to you?
    By pkananen in forum C++ Programming
    Replies: 8
    Last Post: 02-04-2002, 02:58 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21