CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Threaded View

  1. #3
    Join Date
    Sep 2010
    Posts
    18

    Re: Get Address of Line (Reading Files)

    I'm using string class.

    ifstream file;
    name = 'text.txt';

    file.open(name.data());
    while(getline(file, lnstr))
    {
    cout << file.seekg();
    }

    This is what I was doing, but it keeps spitting out the same number. I want to spit it out line by line what the address is. On another note I'm trying to show it as byte values, specifically in 8bytes.
    Last edited by Howdy_McGee; April 16th, 2012 at 11:50 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured