在文件中读写 [英] Read and Write in a File

查看:63
本文介绍了在文件中读写的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我的目标是在需要时保存并读取文件中的加密字符串。

My goal is to save and read when i need it a crypted string in a file.

为此我跟着关于文件访问的sdkSample
http:// code .msdn.microsoft.com / windowsapps / File-access-sample-d723e597

For that I followed the sdkSample about File access there http://code.msdn.microsoft.com/windowsapps/File-access-sample-d723e597

事情是我运行了sdkSample并且它运行良好。但对我来说不是那么多。

The thing is I ran the sdkSample and it works perfectly. But for me not so much.

我开始创建一个类似的新文件:

I started by creating a new file like that:

 


        Windows.Storage.ApplicationData.current.localFolder.createFileAsync("sample.txt",
            Windows.Storage.CreationCollisionOption.replaceExisting).then(function (file) {
// my code there
});

推荐答案

所以如果你不调试它,一切正常吗?

So if you don't debug it, everything works fine?

-Jeff


这篇关于在文件中读写的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆