This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Oracle/OAS and the fly likes removing first blank line in csv file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Oracle/OAS
Bookmark "removing first blank line in csv file" Watch "removing first blank line in csv file" New topic
Author

removing first blank line in csv file

nandini lagunia
Ranch Hand

Joined: May 05, 2009
Posts: 57
Hi,
I have written a sql script which takes the rows from a table and writes it to
a .csv file.

The script is as follows:-


This works fine but output.csv contains a blank line at the top.
How can I get rid of that blank line?

Thanks in advance
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

You could use SET NEWPAGE NONE;


[My Blog]
All roads lead to JavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: removing first blank line in csv file