csv-splitter-1.1.zip
  #31 (permalink)  
Old 09-15-2009, 09:58 AM
Freshman
 
Join Date: Sep 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
fisherchong is on a distinguished road
Default csv-splitter-1.1.zip

Quote:
Originally Posted by scorpion View Post
I've just written the CSV Splitter for you, as I think it might come in handy someday.

Download: csv-splitter-1.1.zip
Downloaded: 1398 times (Oct 18 2007)

I've attached the compiled exe along with source code. To run the exe, you will need .Net Framework Version 1.1 installed in prior.

Instructions:

1. Fill in necessary information:
CSV file: the path to the CSV that you wanted to split.
Number of lines: the maximum number of lines/rows in each splitted piece.
Max Pieces: limit the number of output files. '0' is unlimited.

2. Click "Split Now!", and that's it. You can find the splitted pieces in the a new folder of the same directory of the CSV file.





Scorpion i downloaded the file and ran it but the GUI doesn't have any buttons , it only shown CSV file bar , number of lines bar and max pieces bar ..... no buttons allow me to choose path and no "split now" button also. Do u have any ideas of why it happened ?
Reply With Quote
  #32 (permalink)  
Old 09-18-2009, 04:31 PM
scorpion's Avatar
Forex Guru
 
Join Date: Aug 2004
Posts: 2,118
Thanks: 213
Thanked 387 Times in 155 Posts
scorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to behold
Default

I have no idea how that could happen. I downloaded it and the buttons are there. I double checked the code, and there's not a single line that is about hiding buttons.

Can you take a screenshot? It might offer some clue.
__________________
Make easy pips with the Advanced Economic Calendar for Forex Trading.
Reply With Quote
  #33 (permalink)  
Old 09-21-2009, 03:50 PM
Freshman
 
Join Date: Sep 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Mad_Mitch is on a distinguished road
Default

Scorpion - great tool. Just curious if there is a file size limit. I have a CSV file that is 1.3GB with about 2million rows. When I try and use the splitter, it runs for a second and reports the split was successful; however, only one file is created with only one row. When I run it on smaller files, it works great. Any advice would be appreciated. Thanks again.

Quote:
Originally Posted by scorpion View Post
I've just written the CSV Splitter for you, as I think it might come in handy someday.

Download: csv-splitter-1.1.zip
Downloaded: 1398 times (Oct 18 2007)

I've attached the compiled exe along with source code. To run the exe, you will need .Net Framework Version 1.1 installed in prior.

Instructions:

1. Fill in necessary information:
CSV file: the path to the CSV that you wanted to split.
Number of lines: the maximum number of lines/rows in each splitted piece.
Max Pieces: limit the number of output files. '0' is unlimited.

2. Click "Split Now!", and that's it. You can find the splitted pieces in the a new folder of the same directory of the CSV file.
Reply With Quote
  #34 (permalink)  
Old 09-24-2009, 02:33 PM
Freshman
 
Join Date: Sep 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
RanneR is on a distinguished road
Default

I just wanted to say thanks this solves 98% of my problem. Most of my CSV files do not have a header row. If you could add a header row option I have about 500 people that could use it.

RanneR
Reply With Quote
  #35 (permalink)  
Old 10-01-2009, 09:43 AM
Freshman
 
Join Date: Sep 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
fisherchong is on a distinguished road
Default

Hi,

I've downloaded the App but after i ran the CSV file output value number 1 keeps duplicated to second files.
Anyone can help me solve ? Even i have changed the for loop below:

For i As Integer = 2 To LineCount
'For z As Integer = 0 To WriteLine(z)

Dim s As String = Reader.ReadLine()
If s <> Nothing And _IsAbort = False Then
Writer.WriteLine(s)
Else
Writer.Flush()
Writer.Close()
Exit Do
End If

Next


Still can not , the first value still duplicated to second files.
Reply With Quote
  #36 (permalink)  
Old 10-01-2009, 10:27 AM
Freshman
 
Join Date: Sep 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
fisherchong is on a distinguished road
Default

Thanks i manage to get my program runs well already , thank scorpion.
Reply With Quote
Reply


Thread Tools
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 01:33 PM.
Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0

Registered members have access to special online forex currency trading tools, software, mt4 expert advisors and indicators. Register now