2776Import CSV to HTMLhttp://www.codeave.com/asp/code.asp?u_log=101The author writes "A CSV (Comma Separated Values file sometimes referred to as a flat file) is essentially a text file that has a comma delimiter between the table values and a unique line for each observation. While this is usually a means by which data is transferred from one database to another by itself can be used as input to an asp document." This example will show how to take virtually any CSV file and write it to an html table using ASP.ASP > Tips and Tutorials > File ManipulationOct 10, 2006
This article is first of a series of articles about working with drives, folders and files using ASP. In this article we'll learn how to get hold of Drives collection which FileSystemObject provides us, then we'll use this handle to display a list of all drives connected to our computer with their detailed info. These drives may be fixed hard disks, removable drives like floppy drives, CD-ROM drives or even network drives. We'll then use the handle to a drive to access root folder for that drive and then display all the sub folders and files in that drive. We'll build our application in such a way that we can move around different drives and folders and read different files.
Following example displays all sub folders in current folder. We will use SubFolders property of FileSystem Object for this source code. First we will find our current path using System.MapPath.
The author writes "ASP has the ability to write .html or any other text based documents directly to a web server (You need to write the text output to a directory that has write authority). This enables the instantaneous publication of user input without the need for uploading files from a PC." This example code shows how to write text based documents to a server using ASP.
ASP does not allow you to use IO system to modify on files and folders. But with the help of FileSystem object you can delete any file on your server. Do not forget to double check permissions for this operation.
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.