From: marcov@stack.nl   
      
   On 2005-02-23, RadSurfer wrote:   
   > TP / BP / Free Pascal / havent tried GPC yet...   
   > seem to be able to parse numerical data from text files, but not string   
   > data...   
      
   Well that is strange, since e.g. Free Pascal is a compiler written in itself   
   (Pascal) that parses source code, which is a pretty complex combination of   
   strings.   
      
   > I have ran all kinds of tests lately to see what kinds of tasks I would   
   > assign to Pascal... and its clever at avoiding numerical ascii data if all   
   > you attempt to read in is "Strings"; but should you attempt to mix Strings   
   > and Numerical Data (that is using digits, periods, etc) then enormous   
   > problems arise.   
   >   
   > read(f, Int, Str, Sing); //Integer, String, Single, NOPE!! Can't be   
   > done!   
      
   I'm still waiting for your answer to my question how this can be done, the   
   last time you asked this question.   
      
   A read on a string is defined till the end of the line. How would you   
   define where the "str" ends and "sing" starts?   
      
   > Strangely enough, using Free Pascal, C1 : Array[1..10] of Chars   
   > likewise for C2, C3, worked in   
   > Read(F, C1, C2, C3); but FAILS when merely declared as Strings, I   
   > have   
   > no idea why.   
      
   That's because you say in the declaration of C1 very precisely that you   
   want 10 chars. Exactly 10 chars, no problem to determine where it ends.   
      
   > What is the most popular programming language TODAY ?   
      
   Mathlab, VB and Java. C# quickly rising.   
      
   > I would say "C/C++" because of its enormous versatility and extremely   
   > powerful abilities... but thats me.   
      
   C is only used for embedded use, and the deepest parts of operating systems.   
   There is some usage of C with Unix, but that is out of historical purposes,   
   not because it is so great, and it is loosing that stronghold too.   
      
   C++ is only used to accelerate libraries that are too slow in one of the   
   above languages. It is to tedious and complicated to devel entire   
   applications in.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|