在本地存储中存储字符串数组的最佳方法,Windows 8? [英] Best way to store string array in local storage, Windows 8?
问题描述
我有一个关于 Windows 8 本地存储的问题.
I have a question regarding Local Storage on Windows 8.
我想存储一个股票代码字符串数组.在 Windows 8 上执行此类操作的最佳方法是什么?
I want to store a string array of stock symbols. What is the best way to do something like this on Windows 8?
浏览了一下,有人建议将数组中的每个字符串存储到文本文件中的新行中,保存并从本地存储中检索.
Browsing around, some have suggested store each string in the array into a new line in a text file, saved and retrieved from local storage.
如果是这样,我将如何实现这一目标?有更好的选择吗?我应该走sqlite的道路吗?
If so, how would I achieve this? Are there better alternatives? Should I go down the path of sqlite?
推荐答案
以下示例演示了如何将集合保存到本地存储,请查看:http://code.msdn.microsoft.com/windowsapps/CSWinStoreAppSaveCollection-bed5d6e6
Here's a sample demonstrates how to save a collection to local storage, please check it: http://code.msdn.microsoft.com/windowsapps/CSWinStoreAppSaveCollection-bed5d6e6
这篇关于在本地存储中存储字符串数组的最佳方法,Windows 8?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!