NVFile.Read

I’m trying to read a file on Wii by following NVFile.Read tutorial.
After copying code snippet from that tutorial into my script, some errors occurs:

import System.IO;
import System.Xml;

var file: File = new File ();

yield file.Open (Application.dataPath + "/" + "test001", Access.Read);
if (file.success) {

yield file.GetLength ();
if (file.success  file.length > 0) {

var size: int = (file.length - 1 | 0x1f) + 1;
var buffer: AlignedBuffer = new AlignedBuffer (size, AlignedBuffer.Memory.Mem1, 32);

yield file.Read (buffer, size);
if (file.success) {
// use buffer
}
}
yield file.Close ();
if (!file.success) {
Debug.Log ("Failed to close the file");
}
}

Error:
BCE0085: Cannot create instance of abstract class ‘System.IO.File’.
BCE0023: No appropriate version of ‘System.IO.File.Open’ for the argument list ‘(String, UnityEngine.Access)’ was found.
BCE0019: ‘success’ is not a member of ‘System.IO.File’.
BCE0019: ‘Close’ is not a member of ‘System.IO.File’.

Could anyone please tell me how to fix this ?
And … Is the “File” above the System.IO.File or WiiEngine’s File ?

Thanks in advance.

I tried by replacing the “File” with “NVFile”…

var file: NVFile = new NVFile ();

Now all the compile-time errors have gone…
But it still didn’t work on the Wii…

After file.Open, file.success is always false.

file.Open (Application.dataPath + "/" + "test001", Access.Read);

Does anyone have any idea about this ?

Help me please…
:cry: