Advertisement

Results for "Category: Files"

2002C #16337
a) InFile - Searches by strings in TEXT or BINARIES files, case sensitive or not

InFile searches by a string like "Microsoft Corporation" inside any file you want, case sensitive or not, within subdirectories or not. Example: infile c:\*.txt "Copyright (C)" -sub -case Functions used: FindFirstFile, FindNextFile, fopen, fseek, fread, SetCurrentDirectory, GetCurrentDirectory.

2002C #16339
DirWalk - Getting all directory structure with Win32 API

DirWalk demonstrates how to read a directory structure. Its output looks like TREE MS-DOS command (CONSOLE). I used FindFirstFile and FindNextFile Win32 API functions to program it. It does everything in one function, a recursive function. DirWalk only shows directories, not files. You can modify it to show the files too.

2002C #16439
Beginners tutorial to file handling

FILE HANDLING TUTORIAL FOR BEGINNERS ------------------------------------ This tutorial is intended who don't not a single thing about file handling in C++, one of the most important concepts of any type of programming. I intend to present this tutorial into 2 parts, but both these parts are independent of each other and you can start from any one. This part focuses on: ->How to create files, read and write to them. ->The logic behind many commonly used objects like cout and cin [Did you know that cout is actually an object!!] ->Build your own notepad, "my computer" et cetra. If any doubts persist you can freely sontact me at: shahab_faruqi@rediffmail.com Click on file handling.htm to start.

2002C #16441
Beginners Tutorial to FIle Handling2

This article contains details about reading and writing structured data, the get and getline functions and more. A MUST for someone just entering programming.

2002C #16470
subdirectories (win32)

It is just a function that reads subdirectories from a root into an array, and calls back user for each new directory found (i hope that you'll understand what i mean !!!!) I "played" with pointers, it could be interesting for beginners :) Oh, don't forget to vote !!!!!

2002C #16499
_defs Header file

This is the _defs.h header someone requested.

2002C #16518
Fake File

Create a file of any type, filled with x bytes. (x = user specified). Exercises file I/O.

2002C #16647
Active Directory Browsing (with Download 'Credits'!)

This code allows a user to - Interactivley explore an area of your computer. - Download files based on a database containing 'credits'. One specifies how many files (credits) one may download and link that to a password (or use -1 for unlimited).

2002C #16655
Streaming MP3's

This Code when put in any directory will create a HTML page listing all Mp3's in the directory. It also creates a streaming link to the file, so anyone can stream off you MP3's from your server withour downloading them.

2002C #16754
Upload Files Without COM v2

No need to purchase expensive components. You can do it all with what you already got. This version is an update for faster speed and reliability. Bugs have been fixed, and the entire code has been commented to walk you through the process.

2002C #16766
Upload Files Without COM

Allows you to upload multiple files and fields without purchasing or registering COM objects. Great for shared hosts that frown upon 3rd Party com objects or charge an arm and a leg for them. This version uses Classes rather then the dictionary object that I have seem most other people use. Dictionary Objects seem to be flakey with more problems. I have added examples of how to upload a file to a database and the file system. A file is also included that retreives the file from the database.

2002C #16774
Hex Viewer

Allows you to view the binary data of any file (GIF, JPG, ZIP, TXT, HTM, ASP) as if you were looking at a common hex viewer. Bytes are displayed as Hex characters and character data is displayed on the right. Starting positions of each row are displayed on the left.

2002C #16799
Thumbnail Based on files in Directory II

This is an update of the Thumbnail Based on files in Directory asp file. In this release, put in the same directory the small pictures ( with small_[PictureName].extension ) and the normal size ( [pictureName].extension ). The popup window which is displaying the normal sized picture will be resized automatically regarding the width & height of the displayed picture. You can integrate this function ( with the js file ) in the Tree Menu based on directory asp file. You can use the following syntax on the URL to define a specific sub-directory : /portofolio.asp?whichDir=[subDirectory_Name]

2002C #16800
Tree Menu Based on Directories II

A new release of the Tree Menu Based on Directories. Some bugs has been solved, and the look is more like Windows Explorer. Thnks to Sheeja for the pictures used.

2002C #16804
ASP File Finder

Did you ever want to search for files using your web browser instead of the MS Find Files program? This ASP file searches your hard drive (or web server) for files containing a given string. You can specify a string to search for and the directory to search in (or leave the default c:\ directory).

2002C #16809
A+ ASP Image/Document uploader | view/delete/upload files... create/delete folders

This script utilizes a mix of server-side ASP and client-side vbscript to provide users with the capability to navigate the directory structure of the web-server, select an image file or a document file, and then pass the file attributes back to an HTML form. If the file selected is an image... The image will be displayed to the user so they know that the selected file is the one they want. In addition... the name, width, height, and size of the selected image is collected (code snippet borrowed from Mike Shaffer on 4guys http://www.4guysfromrolla.com/webtech/050300-1.shtml) and passed back to the HTML form. If the file selected is a document... the user has the option to download and open the selected file. The name and size of the document selected is passed back to the HTML form. Additional functionality: UPLOAD IMAGE OR DOCUMENT FILES to the given directory... DELETE IMAGE OR DOCUMENT FILES in the given directory... CREATE NEW FOLDERS... DELETE FOLDERS. This code can be modified to allow any type of file to be uploaded.

2002C #16827
Simple FileSystemObject

This script provides simple, friendly control of the FileSystemObject of the ASP engine. Fully commented descriptions of each function. Just include this file in any script that need to access the file system.

2002C #16877
Form Based File Upload Using Pure ASP

This code will allow you to do form based file uploads. It supports multiple files and uses only pure ASP. It will parse form data, browse server folders for a save location, and log uploads or failed uploads into a database There are no components to install so it will work on any web server that supports ASP. Just paste this code into a text file and name it saveany.asp. I have tested it on IIS 4 and 5, with IE 4, IE 5 and Netscape 6. With this code you will be able to save a file in any directory that the anonymous account assigned to it (usually IUSER_machinename) has access to so be careful. I should note that the server needs ADO, ADOX and the File System Object installed on it.

2002C #16878
excel generator

This simply code, make .xls fine dinamically. You can create worksheet and report. Any feedback is appreciated.

2002C #16880
Edit and manipulate text files

This is a drawn out example of reading and writing with the FileScriptingObject. This is similar to copying a file, but allows rewriting specific line(s). It's intentionally overdone so that you can delete what you don't want. Includes extensive error handling. I've included lots of comments for newbies. 'T Runstein

Languages
Top Categories
Global Discovery