1

How to Check whether a file is text file or not in ASP

Joel Coehoorn
  • 380,066
  • 110
  • 546
  • 781

1 Answers1

0
<%
dim fs
set fs=Server.CreateObject("Scripting.FileSystemObject")
Response.Write(fs.GetExtensionName("c:\test\test.htm"))
set fs=nothing
%>

Output:

htm 
user580950
  • 3,355
  • 12
  • 46
  • 88