is file text.txt a text file?

Discuss any general programming issues here
Post Reply
sashapont
Posts: 152
Joined: Thu Aug 03, 2017 2:49 pm

is file text.txt a text file?

Post by sashapont »

How I can check that file text.txt is plain text file?
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: is file text.txt a text file?

Post by airsoftsoftwair »

Checking for a unprintable characters is a typical way of determining whether a file contains binary or text data. IsPrint() could come in handy here.
Post Reply