Click here to Skip to main content
15,904,339 members
Home / Discussions / C#
   

C#

 
AnswerRe: Validating a "Text" file Pin
musefan20-Jan-09 4:23
musefan20-Jan-09 4:23 
GeneralRe: Validating a "Text" file Pin
EliottA20-Jan-09 4:24
EliottA20-Jan-09 4:24 
GeneralRe: Validating a "Text" file Pin
musefan20-Jan-09 4:36
musefan20-Jan-09 4:36 
AnswerRe: Validating a "Text" file Pin
EliottA20-Jan-09 4:23
EliottA20-Jan-09 4:23 
GeneralRe: Validating a "Text" file Pin
dwolver20-Jan-09 4:32
dwolver20-Jan-09 4:32 
GeneralRe: Validating a "Text" file Pin
EliottA20-Jan-09 4:35
EliottA20-Jan-09 4:35 
GeneralRe: Validating a "Text" file Pin
musefan20-Jan-09 4:39
musefan20-Jan-09 4:39 
GeneralRe: Validating a "Text" file Pin
Guffa20-Jan-09 6:11
Guffa20-Jan-09 6:11 
Perhaps you should look for what you don't accept.

There are a lot of file types that contain plain text, so if someone renames one of those you could not determine that by just checking if the file contains text. This includes script files, so to detect one of those you would have to look what's in the text.

A lot of binary file formats have some identifying bytes at the beginning, you could check for some of the common ones.

Despite everything, the person most likely to be fooling you next is yourself.

AnswerRe: Validating a "Text" file [modified] Pin
Luc Pattyn20-Jan-09 4:38
sitebuilderLuc Pattyn20-Jan-09 4:38 
GeneralRe: Validating a "Text" file Pin
dwolver20-Jan-09 4:42
dwolver20-Jan-09 4:42 
AnswerRe: Validating a "Text" file Pin
Luc Pattyn20-Jan-09 5:09
sitebuilderLuc Pattyn20-Jan-09 5:09 
GeneralRe: Validating a "Text" file Pin
EliottA20-Jan-09 5:53
EliottA20-Jan-09 5:53 
GeneralRe: Validating a "Text" file Pin
PIEBALDconsult21-Jan-09 5:58
mvePIEBALDconsult21-Jan-09 5:58 
AnswerRe: Validating a "Text" file Pin
Luc Pattyn21-Jan-09 6:10
sitebuilderLuc Pattyn21-Jan-09 6:10 
GeneralRe: Validating a "Text" file Pin
PIEBALDconsult21-Jan-09 6:51
mvePIEBALDconsult21-Jan-09 6:51 
Question[newbie] 'System.Data.SqlDbType.BigInt' is a 'field' but is used like a 'type' Pin
jon-8020-Jan-09 3:51
professionaljon-8020-Jan-09 3:51 
AnswerRe: [newbie] 'System.Data.SqlDbType.BigInt' is a 'field' but is used like a 'type' Pin
Christian Graus20-Jan-09 4:09
protectorChristian Graus20-Jan-09 4:09 
Questionmeasure performance of function Pin
George_George20-Jan-09 1:58
George_George20-Jan-09 1:58 
AnswerRe: measure performance of function Pin
Dave Kreskowiak20-Jan-09 2:05
mveDave Kreskowiak20-Jan-09 2:05 
GeneralRe: measure performance of function Pin
George_George20-Jan-09 2:46
George_George20-Jan-09 2:46 
GeneralRe: measure performance of function Pin
Dave Kreskowiak20-Jan-09 5:39
mveDave Kreskowiak20-Jan-09 5:39 
AnswerRe: measure performance of function Pin
SeMartens20-Jan-09 2:10
SeMartens20-Jan-09 2:10 
GeneralRe: measure performance of function Pin
George_George20-Jan-09 2:47
George_George20-Jan-09 2:47 
GeneralRe: measure performance of function Pin
SeMartens20-Jan-09 2:52
SeMartens20-Jan-09 2:52 
Questionchange the size of pages in rdlc report Pin
bhaumikdv20-Jan-09 1:58
bhaumikdv20-Jan-09 1:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.