Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. File I/O Problem

File I/O Problem

Scheduled Pinned Locked Moved C#
questionhelptutorialc++data-structures
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    scrname
    wrote on last edited by
    #1

    >>L_Name[x] >>number[x]; x++; } read.close(); //Where the user can enter more name do { cout <<"First Name: "; cin >>F_Name[x]; cout <<"Last Name: "; cin >>L_Name[x]; cout <<"Number: "; cin >>number[x]; x++; cout <<"Would you like to enter another name?(y/n)"; cin >>resp; } while((resp=='y')||(resp=='Y')); y=x; //writes the origianl names then the new name but here is where i get the //set of numbers ofstream write("File.txt"); for(x=0; x

    H S 2 Replies Last reply
    0
    • S scrname

      >>L_Name[x] >>number[x]; x++; } read.close(); //Where the user can enter more name do { cout <<"First Name: "; cin >>F_Name[x]; cout <<"Last Name: "; cin >>L_Name[x]; cout <<"Number: "; cin >>number[x]; x++; cout <<"Would you like to enter another name?(y/n)"; cin >>resp; } while((resp=='y')||(resp=='Y')); y=x; //writes the origianl names then the new name but here is where i get the //set of numbers ofstream write("File.txt"); for(x=0; x

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      This is the C# forum...for C#. You want the Visual C++[^] forum.

      Microsoft MVP, Visual C# My Articles

      1 Reply Last reply
      0
      • S scrname

        >>L_Name[x] >>number[x]; x++; } read.close(); //Where the user can enter more name do { cout <<"First Name: "; cin >>F_Name[x]; cout <<"Last Name: "; cin >>L_Name[x]; cout <<"Number: "; cin >>number[x]; x++; cout <<"Would you like to enter another name?(y/n)"; cin >>resp; } while((resp=='y')||(resp=='Y')); y=x; //writes the origianl names then the new name but here is where i get the //set of numbers ofstream write("File.txt"); for(x=0; x

        S Offline
        S Offline
        Steven Campbell
        wrote on last edited by
        #3

        Damn, C++ is ugly! All those >> and << make me woozy!

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups