[D4]Text files and mac-osx+Virtual PC

From: Patrice Rabiller (patrice.rabiller_at_wanadoo.fr)
Date: 01/22/04


Date: Thu, 22 Jan 2004 17:12:59 +0100

Hello,

I've made an application with Delphi 4 for PC+windows. This application
draws mathematics graphics. It saves the graphics as text files, using
writeln(FileName,strings). When I open the file, I use Readln for each line
and the graphic is rebuilt.

A user sent me such a text file, but created under Virtual PC with a
mac-os.x.
The text file is not exactly the same as the text files made under windows :
each end of line is CR LF on a PC, but CR CR LF on the mac. This
particularity causes a trouble when you want to read the file. Each line of
the text file is interpreted as two lines : the normal line, then an empty
line so that my application cannot read correctly the file.

Is there anybody knowing this problem ? How can I do to solve this ? My
application is destined to french speaking teachers and is free. You can
find it below.

Thanks in advance.

--
Un logiciel gratuit pour tracer vos courbes :
http://perso.wanadoo.fr/patrice.rabiller/SineQuaNon/menusqn.htm


Relevant Pages

  • Re: .NET & future
    ... Access is perfect for bussines programs, but people use Delphi instead! ... We put that JukeBox on a Fair and we get thousend of orders. ... Our competitors have to hide with their old segmented graphics like ... Competitors installation size cca: ...
    (alt.comp.lang.borland-delphi)
  • Re: Skybucks Island Evolver and the multi-warrior-battle-single-survivor challenge !
    ... and Delphi 2007 for latest compiling for win95 or so. ... little bit by using multiple harddisks... ... work distribution ammong multiple executables and maybe even harddisks... ... Text mode vs graphics mode... ...
    (rec.games.corewar)
  • On the missing T
    ... .NET frameworks is nice indeed. ... e.g. graphics = new Graphics ... Delphi would have the solution: type equivalence, ...
    (borland.public.delphi.non-technical)
  • Re: Help reducing object instance size
    ... > graphics (full screen updates 50 times per second) and that inner working is ... Delphi doesn't provide all I'd like, ...
    (comp.lang.pascal.delphi.misc)
  • Re: [D4]Text files and mac-osx+Virtual PC
    ... >I've made an application with Delphi 4 for PC+windows. ... >draws mathematics graphics. ... It saves the graphics as text files, ... the simple solution was just to trim any leading or trailing ...
    (comp.lang.pascal.delphi.misc)