| | Post-processing huge [POV] text files in Delphi
|
|
Very often, I have just changed a little detail in a model converted to POV by L3P. Then after I run the model through L3P again, I have to manually set all the modifications not handled by L3P arguments again. I try to make a utility program to fix (...) (22 years ago, 7-Sep-02, to lugnet.cad.dev)
|
|
| | Re: Post-processing huge [POV] text files in Delphi
|
|
You could use the 'text' type and process the reading and writing line by line manly insteat by using tstringlist, I asume. quick code for quick copy: var infile, outfile: text; line: string; assignfile(infile, 'bigfile.pov'); reset(infile); (...) (22 years ago, 7-Sep-02, to lugnet.cad.dev)
|
|
| | Re: Post-processing huge [POV] text files in Delphi
|
|
(...) Have you considered using `diff` and `patch` to handle this? l3p ... model.pov cp model.pov model-modified.pov $EDITOR model-modified.pov diff -u model.pov model-modified.pov model.patch ... l3p ... model.pov cp model.pov model-modified.pov (...) (22 years ago, 7-Sep-02, to lugnet.cad.dev)
|
|
| | Re: Post-processing huge [POV] text files in Delphi
|
|
Thanks Roland! I think that's exactly what I was looking for. Sometimes I wish there were a dictionary or cross-reference for people that know what a keyword is named in one programming language. Pressing F1 is a good thing - but only when you know (...) (22 years ago, 7-Sep-02, to lugnet.cad.dev)
|
|
| | Re: Post-processing huge [POV] text files in Delphi
|
|
"Tore Eriksson" <tore.eriksson@mbox3...wipnet.se> skrev i meddelandet news:H22M7n.J3D@lugnet.com... (...) when (...) only (...) into?). My first attempt would be to use a TStringList: with TStringList.Create do try LoadFromFile(...) ; {edit the (...) (22 years ago, 7-Sep-02, to lugnet.cad.dev)
|
|
| | Re: Post-processing huge [POV] text files in Delphi
|
|
(...) WinScript? POV??? /Tore (For very simple stuff like unconditionally adding a line in the beginning or end of a file, I use the 'Copy' command in DOS.) (22 years ago, 7-Sep-02, to lugnet.cad.dev)
|
|
| | Re: Post-processing huge [POV] text files in Delphi
|
|
(...) They are (at least in practice) standard Unix commands. You can probably find binaries for your favourite operating system somewhere on the net. Play well, Jacob (22 years ago, 7-Sep-02, to lugnet.cad.dev)
|
|
| | Re: Post-processing huge [POV] text files in Delphi
|
|
(...) Now that you mention it, I remeber you said that when we met at your home. Is there really any point trying to teach me something? :o) (...) In a way, that makes sense. Many POV statement span over multiple lines. (...) I'm having a look at it (...) (22 years ago, 8-Sep-02, to lugnet.cad.dev)
|