Programmer's WorkBench (pwb.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Newfile Function
                                             Up Contents Index Back
─────Programmer's WorkBench─────────────────────────────────────────────────
 
     The Newfile function creates a new pseudofile. If the Newwindow
     switch is set to Yes, it opens a new window for the file.
     See: Newwindow
 
     Newfile («newfile»)
          Creates a new untitled pseudofile. The new pseudofile is
          given a unique name of the form:
 
               <Untitled.nnn>Untitled.nnn
 
          where nnn is a three-digit number starting with 001 at the
          beginning of each PWB session. The window title shows
          'Untitled.001'. Use the pseudofile name '<Untitled.001>' to
          refer to the file in a text argument or dialog box.
 
     Arg Newfile («Arg» «Newfile»)
          Creates a new pseudofile with the name specified by the text
          from the cursor to the end of the line. The resulting full
          pseudofile name is:
 
               "<Text on the line>Text on the line"
 
     Arg <textarg> Newfile («arg» <textarg> «newfile»)
          Creates a new pseudofile with the name specified by
          <textarg>. The resulting full pseudofile name is:
 
               "<textarg>textarg"
 
          If you want to use a different short name and window title,
          use the full name as an argument to the Setfile or Openfile
          functions. For example, Arg "<temp>Temporary File" Openfile
          opens a pseudofile in a new window that has the title
          Temporary File.
          See: Setfile, Openfile
 
     Returns
 
     True:  Successfully created the pseudofile.
     False: Unable to create the pseudofile.
 
     See
 
     File menu, New
     Pseudofiles (Defined)
                                    -♦-