4 Replies - 961 Views - Last Post: 11 November 2008 - 06:22 AM Rate Topic: -----

#1 sanrasu  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 10-November 08

How to identify a ASCII text file

Posted 10 November 2008 - 03:10 AM

Hi, I just want to know how can i identify the content of the file is ASCII text or others.
Is This A Good Question/Topic? 0
  • +

Replies To: How to identify a ASCII text file

#2 UG Cyber  Icon User is offline

  • D.I.C Addict

Reputation: 32
  • View blog
  • Posts: 546
  • Joined: 24-July 08

Re: How to identify a ASCII text file

Posted 10 November 2008 - 11:13 AM

View Postsanrasu, on 10 Nov, 2008 - 02:10 AM, said:

Hi, I just want to know how can i identify the content of the file is ASCII text or others.

??

What do you mean?? just about every character is printed in ASCII (if not all). even the numbers you see in a text file. ASCII turns intigers into characters so it is readable.
Was This Post Helpful? 0
  • +
  • -

#3 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1639
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: How to identify a ASCII text file

Posted 10 November 2008 - 11:14 AM

[rules][/rules]
Was This Post Helpful? 0
  • +
  • -

#4 born2c0de  Icon User is offline

  • printf("I'm a %XR",195936478);
  • member icon

Reputation: 180
  • View blog
  • Posts: 4,667
  • Joined: 26-November 04

Re: How to identify a ASCII text file

Posted 11 November 2008 - 12:17 AM

If the contents of the file have a majority of symbols with Ascii Values from 32 to 122 then you can safely assume that it is an ASCII Text File.
Was This Post Helpful? 0
  • +
  • -

#5 David W  Icon User is offline

  • DIC supporter
  • member icon

Reputation: 280
  • View blog
  • Posts: 1,787
  • Joined: 20-September 08

Re: How to identify a ASCII text file

Posted 11 November 2008 - 06:22 AM

Quote

Hi, I just want to know how can i identify the content of the file is ASCII text or others.


In Windows OS's ... a simple way is often to just look at the end of the file name ...

Is it .txt

or

.dat

etc ...

Or ...

Just load the file into a text-file-processor like notepad .... and look-see :D

This post has been edited by David W: 11 November 2008 - 06:22 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1