Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 how to delete first line in a .txt file?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

redbrad0
Advanced Member

USA
3725 Posts

Posted - 18 April 2001 :  17:50:10  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
the subject kinda says it all :O)

Brad

Kat
Advanced Member

United Kingdom
3065 Posts

Posted - 19 April 2001 :  04:02:25  Show Profile  Visit Kat's Homepage
You should be able to do that with the File System Object (as long as your server supports it).

You can read lines of a file one at a time so I don't see why you shouldn't be able to delete also.

I can't remember the syntax to be able to give you the code but You should be able to find it on Microsoft's MSDN.

KatsKorner
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 19 April 2001 :  08:58:47  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
Kat,

I have read every book I have, and even looked on MSDN and could not find anything. The only thing I could think about doing is opening the text file, reading each line into a variable, then re-writing the text file without the first line. but it just seems like 2 much work.

Brad
Go to Top of Page

Kat
Advanced Member

United Kingdom
3065 Posts

Posted - 19 April 2001 :  09:26:42  Show Profile  Visit Kat's Homepage
I'll have a look when i get a chance. Bit busy right now ok?

KatsKorner
Go to Top of Page

paco
Junior Member

Spain
187 Posts

Posted - 19 April 2001 :  09:49:07  Show Profile
No delete method available that I know of. What about going to the second line and writing "backstrokes"? Probably that's not its name but isn't there a special character that goes back-wards and deletes on the way?

Hope it helps,
Paco

Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 19 April 2001 :  11:37:45  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
Well I was using a web based asp chat program that wrote the data to a text file. Its a good chat program but I dont think it can handle to many users, so I am back to searching for something else. Do yall know of a good free java applet chat program?

Brad
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.34 seconds. Powered By: Snitz Forums 2000 Version 3.4.07