I cannot share the pcl file - it is for a private project.
I have posted the portion of my C# code for writing the headers below for your reference.
Good luck
// write file header. DO NOT MODIFY!!!
WriteAsASCIIString(bw, "#########################################################################\n");
WriteAsASCIIString(bw, ":FileType pcl binary EnSim 1.0\n");
WriteAsASCIIString(bw, string.Format(":WrittenBy {0}\n", "Hailiang Shen"));
WriteAsASCIIString(bw, "#\n");
WriteAsASCIIString(bw, "#
\n");
WriteAsASCIIString(bw, "#\n");
for (int i = 0; i < firstParticle.Mass.Count + 1; i++) // +1 to include the attribute ID
{
WriteAsASCIIString(bw, string.Format(":AttributeName {0} {1}\n", i + 1, COilDrogue.AttributeNames)); // attribute id starts from 1 not 0
}
WriteAsASCIIString(bw, ":EndHeader\n");
private void WriteAsASCIIString(BinaryWriter bw, string s)
{
byte[] byteData = Encoding.ASCII.GetBytes(s);
bw.Write(byteData, 0, byteData.Length);
}