Re: how to split a string using ,fixed character length, variable text delimmiter

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



How do *you* know it's a delimiter and not data?

In other words, if *I* were to look at the file, knowing nothing about it,
how could I tell what was a delimiter and what was data? How would you
explain to me what to look for?

When you can answer that, you can start thinking about how to pass that
information to a machine.

HTH


Peter

<garyusenet@xxxxxxxxx> wrote in message
news:1165409168.748251.240990@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I'm working on a data file and can't find any common delimmiters in the
file to indicate the end of one row of data and the start of the next.
Rows are not on individual lines but run accross multiple lines.

It would appear though that every distinct set of data starts with a
'code' that is always the 25 characters long. The text is variable
however.

Assuming i've read the contents of the file into the string myfile, how
do i split my file into an array, using this variable text, fixed 25
character long, delimiter?

Thankyou!

Gary-



.



Relevant Pages

  • Re: Lengthy merge code
    ... Do any of your data fields contain any of the delimiter characters (i.e. the ... the chances are that the problem has nothing to do with memory. ... proprietary software package - I don't dare name it - and the merge ...
    (microsoft.public.word.mailmerge.fields)
  • Re: URLScan
    ... You state that "The delimiter of the log file is defined by W3C ... whitespace, not space characters: ...
    (microsoft.public.inetserver.iis.security)
  • Re: [man bash] section "Word Splitting" - IFS
    ... > sing explanation of IFS varible in EXPANSION section, ... then any sequence of IFS characters serves to delimit words. ... >> also treated as a delimiter. ...
    (comp.unix.shell)
  • awk question
    ... delimiter) is, eg, exactly 5 lower case characters ... If ";" is the delimiter character, ... Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. ... Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: ...
    (freebsd-questions)
  • Re: Variable width fixed width text files
    ... 2003 are 69 characters long. ... dynamically set the file/column properties for each file before ... Doing so you will always see only one variable lenght column delimited by the Row delimiter. ... ' Visual Basic Transformation Script ...
    (microsoft.public.sqlserver.dts)