Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


ErikC
  •  ErikC
  • Free support Topic Starter
2008-07-17T08:05:46Z
What about a Manage Text File task.

You can use this task to append lines to a log file, create audit trails or find / replace text.

Append Line
- - Filename: Path to the file
- - Line to append: Text that will be appended to the file

Insert Line
- - Filename: Path to the file
- - Insert text: Text that will be inserted
- - Line: Linenumber where the text should be inserted

Read Line
- - Filename: Path to the file
- - Select:
- - - Read last line of file: Reads the last line of the text file
- - - Read line number: Reads the line number you give of the text file
- - - Read a range of lines: From line x to line y / From line x to last line / Last x numbers of lines

Delete Line
- - Filename: Path to the file
- - Lines: use '-' for a rage of lines. 1-5 are the 1st 5 lines, and use a ',' to seperate the lines, so 1,3-6,9 are the lines 1,3,4,5,6 and 9

Find First Line
- - Filename: Path to the file
- - Search text: text that you want to search for. 1st line that matches will be returned
- - Case sensitive: true / false, for the search text

Find All Lines
- - Filename: Path to the file
- - Search text: text that you want to search for. All lines that matches will be returned
- - Case sensitive: true / false, for the search text

Find and Replace
- - Filename: Path to the file
- - Search text: text that you want to search for
- - Replace text: text that will be replacing the search text
- - Case sensitive: true / false, for the search text

Uses Visualcron since 2006.
Sponsor
Forum information
Support
2008-07-17T09:06:15Z
Thanks Erik for the suggestions. Some questions:

1. Append line. What is really the difference with the file Write task? That you append on a new line?
2. I think that Find First Line and Find All Lines could be combined with a Find First Line only property.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
ErikC
  •  ErikC
  • Free support Topic Starter
2008-07-17T09:13:51Z
Here are the answers:

1. There is no difference I think. the write file does the same. You might want to merge the write file task in the manage text file task? Than you have one task doing stuff with text files. How you upgrade current tasks to this task is up to you ;-)
2. Yes this is an option. Both are almost the same, so a check or a select -box can do the trick here.

Regards
Erik
Uses Visualcron since 2006.
Scroll to Top