G
Guest
Hi,
I would like to know if there is any way to check if a file is an XML or a
plain text file?
Opening the file with a FileStream and checking the first character for '<'
seems not very clean and in case of performance not very fast either, as I
would have to open the file twice if it is an XML file. I can't use the file
extension as it is not shure, that every XML file will have the .xml
extension within the system I need this feature.
Hope you can help me with this problem...
Stampede
I would like to know if there is any way to check if a file is an XML or a
plain text file?
Opening the file with a FileStream and checking the first character for '<'
seems not very clean and in case of performance not very fast either, as I
would have to open the file twice if it is an XML file. I can't use the file
extension as it is not shure, that every XML file will have the .xml
extension within the system I need this feature.
Hope you can help me with this problem...
Stampede