Thread: opening input files

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    2

    Question opening input files

    Can anyone tell me why this is happening;

    Loaded 'C:\WINNT\System32\ntdll.dll', no matching symbolic information found.
    Loaded 'C:\WINNT\system32\kernel32.dll', no matching symbolic information found.
    The thread 0x2BC has exited with code 0 (0x0).
    The program 'D:\ProgramFiles\VisualStudio\MSDev98\MyProjects\G ETLINE\Debug\GETLINE.exe' has exited with code 0 (0x0).

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Not without some code.......

    Chrystal Ball is in for repairs....

  3. #3
    Registered User
    Join Date
    Jan 2002
    Posts
    2

    Unhappy please help

    Here's some of the code:
    ifstream inFile;
    ofstream outFile;

    // Open the input file for reading
    inFile.open("currency.txt");
    // Check for successful file open
    if (inFile.is_open())
    {

    cout << inFile << endl;

    This results in the error and here's the output:
    0x0012FF40

    Few lines of input file;
    AlbaniaLek#ALL#140.8000
    AlgerianDinar#DZD#76.7118
    ArgentinaPeso#ARS#1.4000

  4. #4
    Registered User
    Join Date
    Jan 2002
    Posts
    4
    1.#include<fstream>

    2.open file(include location, ie. "a:\\currency.txt")

    3.and a loop to read to EOF

    getline(readDisk, info);
    while (readDisk) //Read to EOF
    {
    cout << info << endl;
    getline (readDisk, info);
    }

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. can someone help me with these errors please code included
    By geekrockergal in forum C Programming
    Replies: 7
    Last Post: 02-10-2009, 02:20 PM
  2. Need some help with C program writing
    By The_PC_Gamer in forum C Programming
    Replies: 9
    Last Post: 02-12-2008, 09:12 PM
  3. opening files sequentially
    By barneygumble742 in forum C++ Programming
    Replies: 9
    Last Post: 12-21-2006, 11:26 AM
  4. About aes
    By gumit in forum C Programming
    Replies: 13
    Last Post: 10-24-2006, 03:42 PM
  5. Opening files - Giving options?
    By wwwGazUKcom in forum C++ Programming
    Replies: 3
    Last Post: 09-18-2001, 07:06 AM