Skip to main content

How can I use the File.Exists(filename) statement of VB.Net to Visual Cobol?

How can I use the File.Exists(filename) statement of VB.Net to Visual Cobol?

          *>  Test if File exists

          declare  TestFile as string.

          set      TestFile to "c:\\temp\\testtext.txt"

          if  type System.IO.File::Exists(TestFile)

              display "'" & TestFile & "'" & " exists"

          else

              display "'" & TestFile & "'" & " does not exists"

          end-if.


How can I use the File.Exists(filename) statement of VB.Net to Visual Cobol?

Thanx