Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7183689
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T18:02:31+00:00 2026-05-28T18:02:31+00:00

I am building a Windows Phone game using C#/XNA. In the game, I need

  • 0

I am building a Windows Phone game using C#/XNA. In the game, I need to be able to read some data from IsolatedStorage. For this, I create an IsolatedStorageFileStream and then call the Read function. The msdn documentation for IsolatedStorageFileStream.Read states the following:

The buffer parameter can be an instance of the Buffer class, or an array of one of the following types: Byte, SByte, Char, Int16, Int32, Int64, UInt16, UInt32, UInt64, Single, or Double.

However, there is only one overload for the Read function, and it takes an array of bytes, not integers or any other type. I realize that the easy workaround is to read the data into a block of bytes, and then use the BitConverter.ToInt32 function in a loop to get the data I want. However, I want to be able to read a block of integers directly from the file into an array of integers, without spending extra intermediate memory, if possible. Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T18:02:32+00:00Added an answer on May 28, 2026 at 6:02 pm

    You can use Streams to work with the isolated storage. They make access to isolated storage much easier. This way you can avoid the low level access with bytes and buffers.

    A good start:
    http://create.msdn.com/en-US/education/quickstarts/Isolated_Storage

    Some real good articles about isolated storage (and Windows Phone 7 development):
    http://www.windowsphonegeek.com/tips/all-about-wp7-isolated-storage–intro-to-isolated-storage

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building a windows phone 7 application using silverlight 4. I store my data
I'm building a Windows Phone 7 app, and I need a reference to my
I am building an app for Windows Phone, and in this app I have
I'm building a windows application that search items from sharepoint document libraries, using the
I am building a Windows forms application using VS2010. I want to read the
Whilst building a Windows Phone 7 app. using the MVVM pattern we've struggled to
I am building a windows phone application (basically its a game but I am
I'm building my first simple Windows Phone app. I'm having some trouble though. I'm
I am building an MVVM Panorama Windows Phone 7 application. At some point of
I am building a prototype of a windows phone 7 app using d:DesignData in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.