4 Replies Latest reply on Jul 23, 2009 3:19 AM by RockScript

    open file

    RockScript


      file.open(r,undefined,undefined)

       

      i need the explanation of all three parameter

        • 1. Re: open file
          Dirk Becker  Level 4

          See the Help.

           

          Launch ESTK

          Menu: Help / Object Model Viewer

          Browser / Core JavaScript Classes

          Classes / File

          Properties and Methods: open

           

          Dirk

          • 2. Re: open file
            RockScript Level 1

            open(Mode,type,creator)

             

            Here what is the meaning of creator . i am new to javascript.

            • 3. Re: open file
              [Jongware] Most Valuable Participant
              ParameterTypeDescription
              modestringThe read-write mode, a single-character string.
              One of these characters: • r (read) Opens for reading. If the file does not exist or cannot be found, the call fails. • w (write) Opens a file for writing. If the file exists, its contents are destroyed. If the file does not exist, creates a new, empty file. • e (edit) Opens an existing file for reading and writing.
              typestringIn Mac OS, the type of a newly created file, a 4-character string. Ignored in Windows and UNIX. (Optional)
              creatorstringIn Mac OS, the creator of a newly created file, a 4-character string. Ignored in Windows and UNIX. (Optional)
              • 4. Re: open file
                RockScript Level 1

                Thanks