Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 11:20:42 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  VB and the development of wizards
| | |-+  Modify text file
Pages: 1   Go Down
Print
Author Topic: Modify text file  (Read 1049 times)
0 Members and 2 Guests are viewing this topic.
German
Active Member

Offline Offline

Posts: 3


View Profile
« 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?. Huh
Thanks
German
Logged
Graham Waterworth
Administrator
*
Offline Offline

Posts: 1,665


West Yorkshire, England



View Profile WWW
« 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.
Logged

G-Code is on the cutting edge

Autovalues Engineering, CNC machining specialists, Bradford, England
German
Active Member

Offline Offline

Posts: 3


View Profile
« 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
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
*
Offline Offline

Posts: 1,707


Briceville, TN, USA


View Profile WWW
« 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
Logged

Commercial Mach3: Screens (regular and flash), Wizards, Plug-ins, Brains, PLCs, Macros, ATC's, machine build, retrofit and Prototyping
http://sites.google.com/site/volunteerfablab/
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!