How to read and write a file to storage

Dear all:

A very stress problem I met these days. How can I read and edit a file in a storage when doing HD-DVD actions For example, how to edit a file under path "file:///dvddisc/ADV_OBJ/questions.txt" or file:///filecache/questions.txt". The HD DVD Player I am using is Toshiba.

After paused the video, I tried to use FileIO.Copy(), FileIO.remove(), and FileIO.openTextFile(), but will always throw an error. Do I need to notify something before doing edition

If possible, kindly show me some sample codes. Thanks a lot.




Answer this question

How to read and write a file to storage

  • lnkaye

    Can you please provide us some infos about the error. An exception If yes, what kind of exception Is your callback called If yes, with what error code

  • SPflueger

    If you are running on a player then you need to be AACS signed to access pstorage, otherwise your code will be subject to the limitations described in Appendix X of the spec. Your content needs to be Fully Trusted to do this. Without AACS signing, you run in Restricted mode. This is to prevent hostile applications from damaging a player e.g. by writing to pstorage continually, which could wear out the flash memory.

    If you use iHDSim then you don't need to be signed to access pstorage.



  • How to read and write a file to storage