|
@@ -73,11 +73,11 @@ namespace ArcToolkitCLI.Commands.Converters
|
|
var cols = br.ReadUInt32();
|
|
var cols = br.ReadUInt32();
|
|
var rows = br.ReadUInt32();
|
|
var rows = br.ReadUInt32();
|
|
|
|
|
|
- var strLengths = new int[cols * rows * 4];
|
|
|
|
|
|
+ var strLengths = new int[cols * rows];
|
|
|
|
|
|
for (int cell = 0; cell < cols * rows; cell++)
|
|
for (int cell = 0; cell < cols * rows; cell++)
|
|
{
|
|
{
|
|
- br.ReadInt32(); // Total length of all strings
|
|
|
|
|
|
+ br.ReadInt32(); // Total length of all strings because why not
|
|
strLengths[cell] = br.ReadInt32();
|
|
strLengths[cell] = br.ReadInt32();
|
|
}
|
|
}
|
|
|
|
|
|
@@ -96,13 +96,13 @@ namespace ArcToolkitCLI.Commands.Converters
|
|
for (int col = 0; col < cols; col++)
|
|
for (int col = 0; col < cols; col++)
|
|
{
|
|
{
|
|
sw.Write(values[row * cols + col]);
|
|
sw.Write(values[row * cols + col]);
|
|
- sw.Write(ValueSeparator);
|
|
|
|
|
|
+ if(col != cols - 1)
|
|
|
|
+ sw.Write(ValueSeparator);
|
|
}
|
|
}
|
|
sw.WriteLine();
|
|
sw.WriteLine();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
}
|
|
}
|
|
|
|
|
|
return 0;
|
|
return 0;
|