Results 1 to 4 of 4

Thread: Identifying Text Files

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2001
    Location
    Southern California
    Posts
    733

    Identifying Text Files

    How can plain ascii text files be identified without having to look for the .txt extension?

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Without looking at any extension, you'd have to open them up and check to make sure the data inside is all around the readable characters range
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2001
    Location
    Southern California
    Posts
    733
    How do you do that???

  4. #4
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Well you can get information on File I/O here ;
    http://www.vbforums.com/showthread.p...hreadid=121667

    So you'd read in the data, and then um... I suppose loop through for a while and check that each character is inside the character ranges for a-z, A-Z, 0-9 and also a few punctuation marks...
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width