If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Sorting Columns in .CSV File

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-10-03, 00:56
cyrus cyrus is offline
Registered User
 
Join Date: Oct 2003
Location: Pune
Posts: 59
Sorting Columns in .CSV File

Hello All,
Has any one done sorting of columns in .CSV file?
I am aware that it is possible but if any one has done it in ASP please help me with a code.

Cyrus
Reply With Quote
  #2 (permalink)  
Old 10-10-03, 14:22
Seppuku Seppuku is offline
Useless...
 
Join Date: Jul 2003
Location: SoCal
Posts: 721
What do you mean by sorting in a CSV? Do you mean sorting a recordset before you write the CSV? Or reading in a CSV and then sorting it, and writing it out to the browser?
__________________
That which does not kill me postpones the inevitable.
Reply With Quote
  #3 (permalink)  
Old 10-13-03, 01:22
cyrus cyrus is offline
Registered User
 
Join Date: Oct 2003
Location: Pune
Posts: 59
I have clearly mentioned it !!!!
I want to sort based on a column in a csv file


cyrus
Reply With Quote
  #4 (permalink)  
Old 10-17-03, 13:12
Cobbyness Cobbyness is offline
Registered User
 
Join Date: Mar 2003
Posts: 8
Well cyrus.....since you clearly mentioned what you wanted to do, why don't you go and do it? Seppuku asked a clarifying question and you jumped all over him....way to get an answer.

Help with code? Why would anyone help you when you snap back at them. I have rearranged CSV using ASP and VBS\JS, so yes it is possible. But with your attitude here is the help I will give you:

1) Learn VBS\JS and FSO
2) Don't snap at people when they ask a question of you, all he wanted was to clarify something
3) Use Excel if you can't figure it out

That is more help then you deserve.
Reply With Quote
  #5 (permalink)  
Old 10-31-03, 01:25
Bullschmidt Bullschmidt is offline
Guru
 
Join Date: Jun 2003
Location: USA
Posts: 1,032
Re: Sorting Columns in .CSV File

Quote:
Originally posted by cyrus
Hello All,
Has any one done sorting of columns in .CSV file?
I am aware that it is possible but if any one has done it in ASP please help me with a code.

Cyrus
Well you can use a .csv file as a recordset just as you can a database and then control the sorting with your SQL statement.

http://www.able-consulting.com/MDAC/...erForTextFiles
__________________
J. Paul Schmidt, Freelance Web and Database Developer
www.Bullschmidt.com
Access Database Sample, Web Database Sample, ASP Design Tips
Reply With Quote
  #6 (permalink)  
Old 10-31-03, 02:26
cyrus cyrus is offline
Registered User
 
Join Date: Oct 2003
Location: Pune
Posts: 59
Re: Sorting Columns in .CSV File

Quote:
Originally posted by Bullschmidt
Well you can use a .csv file as a recordset just as you can a database and then control the sorting with your SQL statement.

http://www.able-consulting.com/MDAC/...erForTextFiles
Thanx
Ya i can do that.
But what i am doing is reading each line and then validating and then seeking a record in the databse depending on the value of field.
As i don't want to seek in database if there is the same value I want the csv to be sorted
__________________
Cyrus
Finding ways for solution
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On