+ Start a Discussion
bca321bca321 

How to skip line

Hi,

 

I have text file and I want read data from 5th line. How can I skip line 1 - 5? and also empty lines I want to skip. Pl's explain me.

Message Edited by bca321 on 03-01-2009 08:14 AM
Message Edited by bca321 on 03-01-2009 08:36 AM
Message Edited by bca321 on 03-01-2009 08:40 AM
mtbclimbermtbclimber

First, please use a more descriptive subject when you post. This doesn't really help other members of the community identify this thread as having a solution similar to what they are looking for in the future.

 

Second, if your "file" is really just a large text field you can use the string split command as you might in other languages with a regex to split into lines and then just grab the 5th item in the resulting collection.

bca321bca321

Hi Andrew,

 

Thank for your reply. 

Yes my file is large one. But I already used regex and split data what ever I want. I want to read from 5th line in my file. I want to remove above line in my file. How can I skip these lines.

mtbclimbermtbclimber

When you say "file" what do you mean exactly?

 

Are you saying you are using split but don't understand how to remove an item from the collection?

bca321bca321

Hi,

 

I have text file. I want these file data import to salesforce custom object. i want import from 5th line in my file. I want remove row 1- 5.

bca321bca321

Hi,

If u are in online now can u come to online chat