public void WriteAndReadOneAsciiString() { try { string test = "This is a test string"; string filename = Path.Combine(folder, "testOneString.H5"); var fileId = Hdf5.CreateFile(filename); Hdf5.WriteAsciiString(fileId, "/test", test); Assert.IsTrue(Hdf5.CloseFile(fileId) == 0); fileId = Hdf5.OpenFile(filename); string readStr = Hdf5.ReadAsciiString(fileId, "/test"); Assert.IsTrue(test == readStr); Assert.IsTrue(Hdf5.CloseFile(fileId) == 0); } catch (Exception ex) { CreateExceptionAssert(ex); } }