Thread: text file won't show

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User Moni's Avatar
    Join Date
    Oct 2002
    Location
    Dhaka, Bangladesh.
    Posts
    104
    try: "Program.txt.txt" in the file name.

    or check if showing file extentions are ticked there.
    We all are the components of a huge program...... the programmer is always debugging us with His debugger.

  2. #2
    Registered User
    Join Date
    Apr 2004
    Posts
    17

    why dont you try this instead

    try changing your condition to this:
    Code:
      while ( getline (openfile,line) ){
        cout << line << endl;
      }
    Last edited by cold_dog; 09-05-2006 at 12:49 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Formatting the contents of a text file
    By dagorsul in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2008, 12:36 PM
  2. Replies: 3
    Last Post: 03-04-2005, 02:46 PM
  3. struct question
    By caduardo21 in forum Windows Programming
    Replies: 5
    Last Post: 01-31-2005, 04:49 PM
  4. Simple File encryption
    By caroundw5h in forum C Programming
    Replies: 2
    Last Post: 10-13-2004, 10:51 PM
  5. System
    By drdroid in forum C++ Programming
    Replies: 3
    Last Post: 06-28-2002, 10:12 PM