Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Mar 2003
    Location
    Indianapolis, Indiana
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Arrow The ignore function... I actually need it.

    I'm a first year C++ programmer, and I actually have a program where I need the ignore function. Currently, as I understand it from my book - and I made a tiny program to confirm it, the ignore function skips the 'x' amount of characters.

    Well, I need the ignore function to skip everything after the 'x' amount of characters. Is that possible to do?
    - Wizzy

  • #2
    Regular Coder
    Join Date
    Feb 2003
    Location
    California
    Posts
    925
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I don't get why you need to skip everything after the x but here, this web page might help. http://www.cpp-home.com/loobian/tutorials/file_io/6.php
    it has some examples and references the seekg() function which might be what you need.

    Jason


  •  

    Posting Permissions

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