inserting into a text file

Results 1 to 5 of 5

Thread: inserting into a text file

  1. #1
    pn Guest

    Default inserting into a text file

    Hi,<BR> Is there any way where i can insert in the middle of a textfile using the FileSystemObject.<BR><BR>

  2. #2
    Join Date
    Dec 1969
    Los Angeles, CA

    Default NO

    you have to read the entire file and the insert into the variable and write out to the file all over again

  3. #3
    pn Guest

    Default RE: NO

    Thanks..i know it is possible for me to append to the file..but I need to overwrite the last line. Is there any chance of doing that without making a new file?<BR><BR>bye,<BR>pn

  4. #4
    Join Date
    Dec 1969

    Default Still NO.

    The *ONLY* thing you can do to TEXT FILES (on most any file system, not just ASP/Win32/FSO) is overwrite them completely or append to the end of them.<BR><BR>Yes, I know there are other tricks, if you are intimately familiar with the structure of the file(s), but they don&#039;t apply in general and certainly not with the simplistic capabilities of FSO.<BR><BR>

  5. #5
    pn Guest

    Default RE: Still NO.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts