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. Managed C++/CLI
  4. I/O in MC++.

I/O in MC++.

Scheduled Pinned Locked Moved Managed C++/CLI
c++data-structureshelpquestion
3 Posts 2 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.
  • M Offline
    M Offline
    mostafa_pasha
    wrote on last edited by
    #1

    Hi, i wanna read text file . my text file contain double value ! i wanna read this double value & copy them in array of double in MC++ . But i can not understand. is anyone help me? Best Regards.

    C 1 Reply Last reply
    0
    • M mostafa_pasha

      Hi, i wanna read text file . my text file contain double value ! i wanna read this double value & copy them in array of double in MC++ . But i can not understand. is anyone help me? Best Regards.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Proper C++ will do this for you, iostreams allow you to specify what you expect to read. I'm not sure if the System.IO namespace does this, or if you need to parse the string yourself. Christian Graus - Microsoft MVP - C++

      M 1 Reply Last reply
      0
      • C Christian Graus

        Proper C++ will do this for you, iostreams allow you to specify what you expect to read. I'm not sure if the System.IO namespace does this, or if you need to parse the string yourself. Christian Graus - Microsoft MVP - C++

        M Offline
        M Offline
        mostafa_pasha
        wrote on last edited by
        #3

        Hi, Thanks a lot. I use StreamReader and then readLine() then parse string ! But i found i can open file in binary ,then select which type i wanna read. Best Regards. Mostafa

        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