Asp > Code Snippets
This example reads the first 10 characters of a file
This example reads the first 10 characters of a file <% Dim objFSO , objFile Set objFSO = Server.CreateObject("Scripting.FileSystemObject") Set objFile = objFSO.OpenTextFile(Server.MapPath("testfile.txt") , 1) Response.Write (objFile.Read(10)) objFile.Close Set objFSO = Nothing Set objFile = Nothing %>
Asp Codes
ActiveX
ADO
Array
Code Snippets
Components
Data Access
Date Time
Files
Graphics
HTML Formatting
Mathematics
Miscellaneous
Sessions
SQL
Strings
Techniques
XML