p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Professional
I forgot my password Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 18th, 2004, 02:12 AM
Friend of Wrox
Points: 1,351, Level: 14
Points: 1,351, Level: 14 Points: 1,351, Level: 14 Points: 1,351, Level: 14
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2004
Location: Tehran, , Iran.
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\">
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old August 18th, 2004, 02:15 AM
Friend of Wrox
Points: 2,244, Level: 19
Points: 2,244, Level: 19 Points: 2,244, Level: 19 Points: 2,244, Level: 19
Activity: 7%
Activity: 7% Activity: 7% Activity: 7%
 
Join Date: Jun 2003
Location: , , Australia.
Posts: 587
Thanks: 1
Thanked 1 Time in 1 Post
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.
======================================
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #3 (permalink)  
Old August 18th, 2004, 06:33 AM
Friend of Wrox
Points: 1,351, Level: 14
Points: 1,351, Level: 14 Points: 1,351, Level: 14 Points: 1,351, Level: 14
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2004
Location: Tehran, , Iran.
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.:)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #4 (permalink)  
Old August 18th, 2004, 05:04 PM
planoie's Avatar
Friend of Wrox
Points: 16,368, Level: 55
Points: 16,368, Level: 55 Points: 16,368, Level: 55 Points: 16,368, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,394
Thanks: 0
Thanked 2 Times in 2 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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #5 (permalink)  
Old August 19th, 2004, 09:11 AM
Friend of Wrox
Points: 1,351, Level: 14
Points: 1,351, Level: 14 Points: 1,351, Level: 14 Points: 1,351, Level: 14
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2004
Location: Tehran, , Iran.
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.:)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

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 12:06 PM
working with files in c# atulsingh ASP E-commerce 0 September 23rd, 2005 12:29 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 11:05 PM
Working with data from 2 databases piemur Classic ASP Databases 1 February 29th, 2004 03:28 AM



All times are GMT -4. The time now is 05:13 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc