private static void WriteVarChar(string text, uint length, string myFileName) { BinaryWriter writer = BCPTests.CreateBinaryFile(myFileName); SQLVarChar sql = new SQLVarChar(length); sql.Write(writer, text); writer.Close(); }