How do I stick one line of a file into a text register ?
---------------------------Complete Details--------------------------
I want to prepare a list of files, then read from that list, and then
make some decisions and so on.
My skill level will be evident within 90 seconds, so don't feel as if
you need to insult me; I'm well aware of where I fall on the curve:-)
Anyway, I want to do a not-so-involved set of operations on a list of
files (well, "file names" might be more proper) that I will create as
I need them. The list of file names will look like this...
SomeFile.Txt
SomeFile.Asm
SomeFile.Equ
|
|---------------------------------(like, a zillion of these)
|
Another.File.Name.Obj
Another.File.Name.Inc
Another.File.Name.Etc
More to the specific point here, how do I put the name "Somefile.Txt"
into a text register (I am thinking 20) so that I can open it for use
in another buffer ?
I looked in the manuals and the PDF files for every phrase that might
be close, but found nothing. Reg_Set looked close, but evidently it's
not really correct. This can't be that complicated. Any suggestions ?
When I examined the "Wildfile.VDM" example, the closest thing I could
find was this...
File_Open('"|@(#95)"')
I did not immediately see how the "95" stuff was actually formed with
the name of a given file.
The following way does not work,
File_Open_Read("The_Prepared_List")
While (! At_EOF)
{
@20 = File_Read() <<---------------------- Vedit gets mad here
Buf_Switch()
File_Open(@20)
|
|
|
|
|
| <<-------------------- My stuff will go down here
|
|
|
|
}