Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 18th, 2004, 01:12 AM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 623
Thanks: 0
Thanked 1 Time in 1 Post
Default Working with files instead of databases

Hi everyone
I want to work with files instead of databases I dont know where I should start...
also my file should be able to save records and fields
Thanks in advance. :)

--------------------------------------------
Mehdi.:)
__________________
_____________
<font color=\"teal\"><font size=\"1\"><b>Mehdi.
software student.</b></font id=\"size1\"></font id=\"teal\">
 
Old August 18th, 2004, 01:15 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 596
Thanks: 1
Thanked 3 Times in 3 Posts
Default

You should start by looking at XML.

Out of my own interest, why do you not wish to use databases?

======================================
They say, best men are molded out of faults,
And, for the most, become much more the better
For being a little bad.
======================================
 
Old August 18th, 2004, 05:33 AM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 623
Thanks: 0
Thanked 1 Time in 1 Post
Default

Thanks for the reply
I dont want to use XML files I want to use TXT files
my datasource is small so using files could be certainly better in my scenario

--------------------------------------------
Mehdi.:)
 
Old August 18th, 2004, 04:04 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Technically XML *is* a text file, but it contains structure and order so that it's far more useful than a simple TXT file.

Normally, I'd try to provide an answer to the question, but in this case I have to ask why you do not want to use XML? This seems to be a serious step backwards that will create much more work than it is worth or is necessary.

But to answer the question:
Look into the System.IO namespace, namely the File and Directory classes.
 
Old August 19th, 2004, 08:11 AM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 623
Thanks: 0
Thanked 1 Time in 1 Post
Default

Peter I know using XML could be better(but I dont want because I have a program in C++ and I want to upgrade it to .NET)
Peter can u help me again about Sequential files and(against) Random(Direct)files
I dont know how I could work with them(using which classes?)
we had them in C++ i.e in a Sequential file for getting a record you must read all previous records
but in Random Files you can access a record directly
do u know how I can declare such files & how I can access their records
Thanks in advance.


--------------------------------------------
Mehdi.:)





Similar Threads
Thread Thread Starter Forum Replies Last Post
When will the working download files ... kmccloud BOOK: Professional Web Parts and Custom Controls ASP.NET ISBN: 0-7645-7860-X 3 July 13th, 2006 11:06 AM
Local COM working , but not working at Web Serv nagen111 .NET Web Services 3 February 19th, 2005 04:22 AM
Working with .txt files ArtDecade VB How-To 2 September 10th, 2004 10:05 PM
Working with data from 2 databases piemur Classic ASP Databases 1 February 29th, 2004 03:28 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.