Click here to Skip to main content
15,881,559 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I'm trying to compare data from a CSV file without importing it in a Data Table. Is it possible?

I need help on this one, please.
Thanks.
Posted
Comments
OriginalGriff 13-Jan-14 3:48am    
You'll have to be a bit more specific than that: of course it's possible, but exactly how depends on what you are trying to compare it with, how you need to compare it and so forth.
Karen Mitchelle 13-Jan-14 4:22am    
for example, i have lines of transaction, i have to know all the transactions that has the same transaction time, price, stock but it must be on the different side (buy or sell).
i tried to import it on a data table before comparing it. but my teacher wants me to do it directly. not using a data table. I mean..
OriginalGriff 13-Jan-14 4:49am    
So what has your teacher taught you to do to load a CSV file?
There are a lot of ways to do it, and I don't want to introduce something new in case that is not what he wants either.
Karen Mitchelle 13-Jan-14 4:56am    
he doesn't give the specifics. all he wants is that I don't have to use a Data Table anymore. He said that after I browse the CSV file's location, and when i click the "Compare Data" Button, it will automatically compare the data inside the CSV file and finally give an output which is in a CSV format also.
OriginalGriff 13-Jan-14 5:06am    
So how has he taught you to read a CSV file?

1 solution

Of course it is possible, you have to parse yourself the file and then perform the comparison. Loading it in a datatable could make your task easier, though.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900