Hello,
thanks for the information. If the NRE will be thrown again, please feel free to contact us.
And thanks for the prolongation of the contract.
And one tip. If you have a new version of our components and if you use the virtual file system as demonstrated in the CreateFiles method, you can find a useful our new API. If you know .NET System.IO (File, Directory...), you are already an expert on our new API.
Example
using (var memoryProvider = new MemoryFileSystemProvider())
{
var memoryProviderRootPath = memoryProvider.GetRootVDirectoryInfo().FullName;
VDirectory.CreateDirectory(Path.Combine(memoryProviderRootPath, "Archiv"));
VDirectory.CreateDirectory(Path.Combine(memoryProviderRootPath, "Data", "CurrentData"));
var oldData = new VDirectoryInfo(Path.Combine(memoryProviderRootPath, "Data", "OldData"));
oldData.Create();
using (var archiveFileMs = new VFileStream(Path.Combine(memoryProviderRootPath, "Archiv", "archivefile.dat"), FileMode.CreateNew, FileAccess.Write))
{
archiveFileMs.Write(DataGenerator.GetTestData(2048), 0, 2048);
}
var myFileTxtPath = Path.Combine(memoryProviderRootPath, "Data", "CurrentData", "myFile.txt");
using (var currentTxtFile = new VFileInfo(myFileTxtPath).CreateText())
{
currentTxtFile.WriteLine("Zvlášť zákeřný učeň s ďolíčky běží podél zóny úlů.");
currentTxtFile.WriteLine("Příliš žluťoučký kůň úpěl ďábelské ódy.");
}
var allText = VFile.ReadAllText(myFileTxtPath);
TestConsole.Instance.WriteLine("Text from {0}", myFileTxtPath);
TestConsole.Instance.WriteLine(allText);
var myDataBinFilePath = Path.Combine(memoryProviderRootPath, "Data", "CurrentData", "myData.bin");
using (var currentBinaryWriter = new BinaryWriter(VFile.OpenWrite(myDataBinFilePath)))
{
currentBinaryWriter.Write(124);
currentBinaryWriter.Write(1001f);
currentBinaryWriter.Write('x');
currentBinaryWriter.Write(1089323234M);
}
var rawBinaryData = StringUtil.ToHexStringLower(VFile.ReadAllBytes(myDataBinFilePath));
TestConsole.Instance.WriteLine("Raw binary data from {0}: {1}", myDataBinFilePath, rawBinaryData);
using (var currentBinaryReader = new BinaryReader(VFile.OpenRead(myDataBinFilePath)))
{
TestConsole.Instance.WriteLine("Data from myData.bin");
TestConsole.Instance.WriteLine(currentBinaryReader.ReadInt32());
TestConsole.Instance.WriteLine(currentBinaryReader.ReadSingle());
TestConsole.Instance.WriteLine(currentBinaryReader.ReadChar());
TestConsole.Instance.WriteLine(currentBinaryReader.ReadDecimal());
}