制作无法访问的文件 [英] Make an Unreachable File

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

问题描述

嗨。

我需要编写一个独特的阅读器并使PDF或Doc文件无法访问,只能与我的阅读器一起阅读。我需要将我的PDF或doc编码到另一个文件,然后在我的阅读器中解码。也许在串行模式下写不顺序?

您的建议是什么?

顺便说一下......如何在C#中以串行模式读/写文件?就像我们在qbasic中所拥有的那样!!!

Hi.
I need to write a unique reader and make a PDF or Doc file unreachable to be read just with my reader. I thing i need to code my PDF or doc to another file an then decode it in my reader. Perhaps write in serial mode not sequential?
Whats your suggestions?
By the way... How can i read/write a file in serial mode in C#? like what we had in qbasic!!!

推荐答案

加密它:密码学名称空间 [ ^ ]有很多课程可以帮助解决这个问题,其中大部分都有非常简单的例子。



我'我不确定你的意思是什么在C#中以串口模式读/写文件?就像我们在qbasic中所拥有的那样!但如果你的意思是一次一行,那么看一下 FileStream类 [ ^ ]或 TextReader [ ^ ] / TextWriter [ ^ ] combo,应该覆盖它。如果没有,那么试着给我们一些关于你想要达到的目标的细节,我们会看到我们可以建议的东西。
Encrypt it: The Cryptography namespace[^] has a lot of classes to help with that, most of which have pretty simple examples.

I'm not sure what the heck you mean by "read/write a file in serial mode in C#? like what we had in qbasic!" but if you mean "a line at a time" then have a look at the FileStream class[^] or at a TextReader[^] / TextWriter[^] combo, which should cover it. If it doesn't, then try to give us a bit more detail as to what you are trying to achieve and we'll see what we can suggest.


这篇关于制作无法访问的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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