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. Visual Basic
  4. Saving Integer Array

Saving Integer Array

Scheduled Pinned Locked Moved Visual Basic
data-structuresquestion
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.
  • O Offline
    O Offline
    O G I
    wrote on last edited by
    #1

    Hi, I'm currently working on a program where I have very big Integer array - with 81000000 elements. I want to keep this array and the information within for future work, is there a way to save that big array in file, and then to restore the array from that file? Thank you in advance!

    D 1 Reply Last reply
    0
    • O O G I

      Hi, I'm currently working on a program where I have very big Integer array - with 81000000 elements. I want to keep this array and the information within for future work, is there a way to save that big array in file, and then to restore the array from that file? Thank you in advance!

      D Offline
      D Offline
      dan sh
      wrote on last edited by
      #2

      You can do that using serialization. There are classes available in .Net to serialize an object and save it to files. You can use them.

      It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD

      O 1 Reply Last reply
      0
      • D dan sh

        You can do that using serialization. There are classes available in .Net to serialize an object and save it to files. You can use them.

        It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD

        O Offline
        O Offline
        O G I
        wrote on last edited by
        #3

        Thank You for the fast answer! I solve the problem and now I can save and open the array in binary file format! :)

        D 1 Reply Last reply
        0
        • O O G I

          Thank You for the fast answer! I solve the problem and now I can save and open the array in binary file format! :)

          D Offline
          D Offline
          dan sh
          wrote on last edited by
          #4

          Welcome :thumbsup: :)

          It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD

          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