CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2002
    Posts
    87

    Converting to double

    Dear Code Gurus,

    I have a text file containing a rectangular block of double data and would like to read those data into double array (in C# project).
    It seems that I could start with StreamReader and read each line from this file into a String. What should I do with the String to convert it to double after that?

    Thank you for your help.

  2. #2
    Join Date
    Jun 2008
    Posts
    2,477

    Re: Converting to double

    Ummm... double.Parse( string s )?
    If you liked my post go ahead and give me an upvote so that my epee.... ahem, reputation will grow.

    Yes; I have a blog too - http://the-angry-gorilla.com/

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