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. XML / XSL
  4. double array into an XML file

double array into an XML file

Scheduled Pinned Locked Moved XML / XSL
csharpdata-structuresxmlquestion
4 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.
  • C Offline
    C Offline
    ceken
    wrote on last edited by
    #1

    Hi all, My question is very simple; I have two arrays : double[] arr1 = new double[] {1,2,3}; double[] arr2 = new double[] {10,20,30}; I want to store to and than read these arrays back from an XML file. Could someone please send a small piece of code written in C#. Thanks. Cengiz EKEN.

    P 1 Reply Last reply
    0
    • C ceken

      Hi all, My question is very simple; I have two arrays : double[] arr1 = new double[] {1,2,3}; double[] arr2 = new double[] {10,20,30}; I want to store to and than read these arrays back from an XML file. Could someone please send a small piece of code written in C#. Thanks. Cengiz EKEN.

      P Offline
      P Offline
      pmarfleet
      wrote on last edited by
      #2

      ceken wrote:

      I want to store to and than read these arrays back from an XML file. Could someone please send a small piece of code written in C#.

      That's not how things work here. We don't do your work for you. Anyway, you need to be more specific about what you want to do. How should your XML be structured? I suggest that you do some more research, attempt to solve the problem yourself and post again if you encounter any further difficulties. I've just noticed that you posted the same message[^] 2 days ago and were given some help. Why have you posted it again? Why have you failed to act upon the advice you had previously received?

      Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

      C 1 Reply Last reply
      0
      • P pmarfleet

        ceken wrote:

        I want to store to and than read these arrays back from an XML file. Could someone please send a small piece of code written in C#.

        That's not how things work here. We don't do your work for you. Anyway, you need to be more specific about what you want to do. How should your XML be structured? I suggest that you do some more research, attempt to solve the problem yourself and post again if you encounter any further difficulties. I've just noticed that you posted the same message[^] 2 days ago and were given some help. Why have you posted it again? Why have you failed to act upon the advice you had previously received?

        Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

        C Offline
        C Offline
        ceken
        wrote on last edited by
        #3

        Hi, Regarding the help posted 2 days ago, The solution offered in that transaction was not the way that i need, because I used that method before. As for your questions; `500,525,550,575,600,17425,18000, 4.08,6.96,8.91,7.79,7.72,2.34,4.56` My xml document is given above. I write my arrays comma delimited to xml file but when the array size is large,say 1000000, it becomes cumbersome to write and read back. Because I have to use text processing. So, to overcome such text processing; Is there a way to store to and than read these arrays back from an XML file. Regards Cengiz EKEN

        C 1 Reply Last reply
        0
        • C ceken

          Hi, Regarding the help posted 2 days ago, The solution offered in that transaction was not the way that i need, because I used that method before. As for your questions; `500,525,550,575,600,17425,18000, 4.08,6.96,8.91,7.79,7.72,2.34,4.56` My xml document is given above. I write my arrays comma delimited to xml file but when the array size is large,say 1000000, it becomes cumbersome to write and read back. Because I have to use text processing. So, to overcome such text processing; Is there a way to store to and than read these arrays back from an XML file. Regards Cengiz EKEN

          C Offline
          C Offline
          ceken
          wrote on last edited by
          #4

          Hi, Regarding the help posted 2 days ago, The solution offered in that transaction was not the way that i need, because I used that method before. As for your questions; 500,525,550,575,17875,17900,17925,17950,17975,18000, 25.998,28.776,22.487,21.561,21.537, My xml document is given above. I write my arrays comma delimited to xml file but when the array size is large,say 1000000, it becomes cumbersome to write and read back. Because I have to use text processing. So, to overcome such text processing; Is there a way to store to and than read these arrays back from an XML file. Regards Cengiz EKEN

          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