Hi all,
im just i need of help with splitting a file
The file looks like this
-------------------------------------------------------------------------------
OrderID|BillFirstname|BillLastname|BillCompany|BillAddress
1143658|Chris|Bell|Strutt & Parker|13 Hill St
1143659|Chris|Bell|Strutt & Parker|13 Hill St
1143660|Chris|Bell|Strutt & Parker|13 Hill St
--------------------------------------------------------------------------------
What I would like to do is split the file into the rows to insert into the database. The thing is I dont know how to:
1. Remove the header row
2. Tell the split function to treat each line as 1 row
3. Then split each field based on the pipe
any help would be greatly appreciated
im just i need of help with splitting a file
The file looks like this
-------------------------------------------------------------------------------
OrderID|BillFirstname|BillLastname|BillCompany|BillAddress
1143658|Chris|Bell|Strutt & Parker|13 Hill St
1143659|Chris|Bell|Strutt & Parker|13 Hill St
1143660|Chris|Bell|Strutt & Parker|13 Hill St
--------------------------------------------------------------------------------
What I would like to do is split the file into the rows to insert into the database. The thing is I dont know how to:
1. Remove the header row
2. Tell the split function to treat each line as 1 row
3. Then split each field based on the pipe
any help would be greatly appreciated