Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Read question in Reb 3.0

From: raimunddold:web at: 19-Feb-2009 19:56

Hi, sorry, but it is me again. Your example works for the testfile I provided in the mail but failed on the very next file I tested. The testfile (named testfile.dat) looks like this: =2D---------------------------- St=FCck/Nominale ;"Bezeichnung" 4,636 ;"NAME" =2D---------------------------- Just two lines to get clear results. If I read the file testfile.dat with the following line in R3
>> dat: parse/all read %testfile.dat newline
== ["St=FCck/Nominale" {;"Bezeichnung"} "4,636" {;"NAME"} "" "" "" "" "]
>> length? dat
== 9 Using parenthis around the newline gives even stranger results:
>> dat: parse/all read %testfile.dat {newline}
== [ St=FCck/Nominale" {;"B} "z" "" "ch" "u" {g" 4,636 ;"NAME" }]
>> length? dat
== 7
>> dat/2
== {;"B} Any more suggestions? Raimund Am Dienstag 17 Februar 2009 schrieb Peter W A Wood: