Page 1 of 1

how to read a sequential file with out delimiters.

Posted: Mon Oct 25, 2010 5:10 pm
by vikramkola
how to read a sequential file with out delimiters.

:(

Posted: Mon Oct 25, 2010 5:36 pm
by ray.wurlod
That's not a problem. Do you mean field delimiters or record delimiters?

If the sequential file has no record delimiter it contains at most one line, so that's not a problem.

If the data structure lacks field delimiters then either there is only one field or the fields are identified by their length - that is, you have a fixed-width format file, and should use appropriate Format metadata.

Posted: Mon Oct 25, 2010 5:46 pm
by vikramkola
RAY, there are just rows and coloums with out comma, or any other delimiters ,even they are not fixed-width format.

Posted: Mon Oct 25, 2010 6:04 pm
by ray.wurlod
If there are no delimiters, how do you know there are rows and columns?

Do you have any description of the file's alleged format?

Are there separate lines in the file? If so could you post just a few of them?

Posted: Tue Oct 26, 2010 2:03 pm
by kduke
Read it all as one column. Do pattern matching maybe to parse the columns. You probably need to use field() a lot to figure out where and how to parse.