Machsupport Forum

Mach Discussion => VB and the development of wizards => Topic started by: German on December 03, 2006, 11:22:09 AM

Title: Modify text file
Post by: German 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
Title: Re: Modify text file
Post by: Graham Waterworth 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.
Title: Re: Modify text file
Post by: German 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
Title: Re: Modify text file
Post by: poppabear 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