SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Copy part of file to a new file

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Copy part of file to a new file
Author Message
Mo



Joined: 11 Feb 2000
Posts: 1

Post Copy part of file to a new file Reply with quote

I need to create a 24x7 job that copies a small part of a .rm type file to a new file. Any idea how can I do that? Thank you.

Fri Feb 11, 2000 5:13 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7839

Post Re: Copy part of file to a new file Reply with quote

The best implementation depends on the size of the file and your specification of the "part" of file.

One of the solutions is to do the following:

1. // read entire file into a variable
Dim file_buffer, string
Dim part, string

FileReadAll ["your file name here"], file_buffer

2. // Get the part you want using Mid, Left, or Right statements
Mid file_buffer, [start position], [end position], part

3. // save it
FileSave ["output file name"], part

: I need to create a 24x7 job that copies a small part of a .rm type file to a
: new file. Any idea how can I do that? Thank you.

Fri Feb 11, 2000 6:23 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.