reading sequential file as a single field
Posted: Fri Dec 15, 2006 12:49 am
hi all...
in my last post i asked one question...as per the post i approached the solution but now i m facing a problem
while reading the whole sequential file as a single field as am facing a problem.an error message is showing there.my file has some rows as blank and some rows have data in it.i need to read the whole file as one field.
my file looks like this
name of the company
*******************
*blank spaces here*
generation date :12/10/2006
*blank spaces here*
1256~name1~account_no~ aghik@yahoo.com~12/15/2005
1562~name2~account_no~ aghik@yahoo.com~12/15/2005
1563~name3~account_no~ aghik@yahoo.com~12/15/2005
generation date :12/10/2006
*blank spaces here*
1256~name1~account_no~ aghik@yahoo.com~12/15/2005
1562~name2~account_no~ aghik@yahoo.com~12/15/2005
1563~name3~account_no~ aghik@yahoo.com~12/15/2005
i have choosen the fixed width type and terminator to yes...and also reading it as char and nullable is set to yes.
plz help me how to read the file
in my last post i asked one question...as per the post i approached the solution but now i m facing a problem
while reading the whole sequential file as a single field as am facing a problem.an error message is showing there.my file has some rows as blank and some rows have data in it.i need to read the whole file as one field.
my file looks like this
name of the company
*******************
*blank spaces here*
generation date :12/10/2006
*blank spaces here*
1256~name1~account_no~ aghik@yahoo.com~12/15/2005
1562~name2~account_no~ aghik@yahoo.com~12/15/2005
1563~name3~account_no~ aghik@yahoo.com~12/15/2005
generation date :12/10/2006
*blank spaces here*
1256~name1~account_no~ aghik@yahoo.com~12/15/2005
1562~name2~account_no~ aghik@yahoo.com~12/15/2005
1563~name3~account_no~ aghik@yahoo.com~12/15/2005
i have choosen the fixed width type and terminator to yes...and also reading it as char and nullable is set to yes.
plz help me how to read the file