Insert a file into the file your are currently editing

Get help with the installation and running of the Zeus IDE. Please do not post bug reports or feature requests here. When in doubt post your question here.
Post Reply
kenbr1960
Posts: 3
Joined: Sun May 25, 2014 3:55 pm

Insert a file into the file your are currently editing

Post by kenbr1960 »

I'm just learning the Zeus editor after many years using CodeWright. I've been able to accomplish pretty much everything I've needed to but I can't figure out how to insert a file into the file I'm currently editing.

I'm working in COBOL and I'm writing a file conversion program and would like to read the select and fd copybooks from the old version of the file into the conversion program. I went ahead and worked around it by opening the copybooks and copy/pasted them into my program. But I would like to know how to do this in the future.

For those familiar with CodeWright the option was Edit/Insert File
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

I can't figure out how to insert a file into the file I'm currently editing.
One option is to use FileInsertAtCursor keyboard function, which will ask the user for the file name and as the name suggests insert that file at the cursor.

That function can be bound to the keyboard, but to just test the function use the Macro, Execute Script menu and type in FileInsertAtCursor in the resulting dialog.

But it would also be quite easy to write a script that reads and inserts a file, so many other options are also possible.

In what you are trying to achieve where are you expecting to get the name of the file to be inserted :?:

Cheers Jussi
kenbr1960
Posts: 3
Joined: Sun May 25, 2014 3:55 pm

Post by kenbr1960 »

That was exactly what I was looking for! Thanks
Post Reply