Hello Guest it is March 29, 2024, 04:54:10 AM

Author Topic: Modify text file  (Read 4075 times)

0 Members and 1 Guest are viewing this topic.

Modify text file
« on: December 03, 2006, 11:22:09 AM »
Hi,
Is possible to modify a sequential text file?
The only that I need to do is to change the last line.
Or delete the line and append a new line, but how I delete the line?. ???
Thanks
German

Offline Graham Waterworth

*
  • *
  •  2,668 2,668
  • Yorkshire Dales, England
    • View Profile
Re: Modify text file
« Reply #1 on: December 03, 2006, 11:32:17 AM »
If you click the EDIT PROGRAM button, the text file should be sent to notepad for editing.

Graham.
Without engineers the world stops
Re: Modify text file
« Reply #2 on: December 03, 2006, 07:14:51 PM »
Sorry,
My problem is to edit the TeachFile with VB script and modify the text within macro.
German

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Re: Modify text file
« Reply #3 on: December 20, 2006, 07:57:32 PM »
Perhaps you could do it in 3 seprete files.

Open the first and put in your info, upto the last line that you want to be varable.

Open and name a second file that you put your variable into, and this is an append file that will append the first and second to a 3rd. then the 3rd file you post to where ever. When you need to change it, just run the process again, 1st file loads, you put in your new info in your append file, then it re-sums file one and two, with the new appended message to the end.

scott
fun times