流阅读器作家问题 [英] Stream reader Writer Issue

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

问题描述


我们已经使用Reader和writer从Online下载视频文件.
我已使用以下代码读取,写入,附加视频文件.
但是这里附加的文件与已经下载的文件分开.但是我需要
追加也可以在同一文件中完成.


阅读
------------

Hi,
We have using Reader and writer for video file download from Online.
I have use following codes for reading,writing,appending Video file.
but here appended file separated from already downloaded File.But i need
Appending also done in same File.


reading
------------

webResp.GetResponseStream().Read(..)



写作
-------------



Writing
-------------

FileStream writer = new FileStream(this.LocalDirectory + "\\" + file.Name, System.IO.FileMode.Create);



追加
----------



append
----------

FileStream writer = new FileStream(this.LocalDirectory + "\\" +"A"+file.Name, FileMode.Append, FileAccess.Write);




恭喜,
Prabu




reagards,
Prabu

推荐答案

这是否全部涉及在中断下载之前部分下载的文件的下载?你做错了.请参考我在CodeProject上共享的应用程序HttpDownloader:如何从互联网下载文件 [ ^ ].

这一切都做得到;我提供了该应用程序的完整源代码.

—SA
Is it all about downloading of the file which was partially downloaded before downloading was interrupted? You are doing it wrong. Please refer to my application HttpDownloader which I shared on CodeProject: how to download a file from internet[^].

It does it all; I provided complete source code of the application.

—SA


好吧,您要追加到前面带有"A"的其他文件.你为什么还要追加?
Well, you''re appending to a different file with an ''A'' in front of it. Why would you append anyway?


这篇关于流阅读器作家问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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