A client sends a csv structure in a .txt file and at other times sends a flat structure with paragraphs and sentences. How can I identify through a program in C# if the file sent by the client is a CSV or a plain text?
CSV Example:
1,33838,20181217,GTR,5,1587,S,"STT PPP USA, SA.",N,2,58.00,3,58.00
2,1,0,0,LHG,1000000007,,6,0,1000000006,
2,2,0,0,LHG,1000000007,,6,0,1000000003,
Text Plane Example:
ASCII Converter enables you to easily convert ASCII characters to their hex, decimal, and binary representations. In addition, base64 encode/decode binary data. As you type in one of the text boxes above, the other boxes are converted on the fly.
The ASCII converter doesn't automatically add spaces between the converted values. You can use the add spaces button to separate the ASCII characters so that the converted values will also be separated from one another.