11,567 questions
Hi la07k-4914,
I suggest you can use FileStream to read .ptd file to byte array, and then write the byte array back to a .txt file.
FileStream stream = File.OpenRead(@"C:\Users\Desktop\test.ptd");
byte[] fileBytes = new byte[stream.Length];
stream.Read(fileBytes, 0, fileBytes.Length);
using (Stream file = File.OpenWrite(@"C:\Users\Desktop\test.txt"))
{
file.Write(fileBytes, 0, fileBytes.Length);
}
stream.Close();
Best Regards,
Daniel Zhang
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.