CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: kahjun

Search: Search took 0.07 seconds.

  1. Replies
    6
    Views
    4,507

    Re: reading from file using a function problem

    thanks alot monarch, you've been a great help =)

    i've managed to read the whole file and print it out using
    cout<<lines; now, but i still have a question.

    Assuming my files have the words...
  2. Replies
    6
    Views
    4,507

    Re: reading from file using a function problem

    thanks for reply monarch, the .stx is the extension of the file that i'm supposed to open...
    i've included the .c_str() but still couldn't get it working :'(
  3. Replies
    6
    Views
    4,507

    reading from file using a function problem

    void Lines::load(string filename)
    {
    string lines;

    ifstream inFile;
    inFile.open(filename.stx);
    if (!inFile)
    {
    cout<<"error";
    }
Results 1 to 3 of 3





Click Here to Expand Forum to Full Width

Featured