Hi again - Many thanks for the help there - that now works fine each & every time - the file rewrite problem turned out to be because I was not running as a user with permissions for writing on /tmp

Modification of the file need not take place at this time, perhaps functioning the read to get the editable data to populate a web template might be a better concept and then on the post (when the data is changed) perform the reads again but substituting the changes when writing the temp file and when it's all written then move it to avoid any reads of the partial file which may be destructive if the file hasn't been completely written out.

Can anyone suggest how to accomplish this? I'm no programmer by any stretch of the imagination & any help you guys could give me would really be appreciated.


In reply to Re: Splitting up file by hmag
in thread Splitting up file by hmag

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.