I need to print text to a file. The catch being that some part of the text is static(hardcoded) whereas the rest is dynamic(defined after some processing logic.)
The whole file can be written to sequentially i.e
print static text
print static text
print dynamic text
print static text
print dynamic text
and so on ..
Or the file can be written as
print all static text first
print dynamic text
In the second approach , the dynamic text needs to be inserted into different placeholders between different static text. Is this a better approach ? Can the same file handle be used for this?
Thanks in advance!
In reply to File dynamic write operations by perlpal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |