7 Replies Latest reply: Feb 13, 2008 6:43 PM by 807603 RSS

    Time sensitive type casting problem, please answer

      I am trying to accept one input that can be used as either a File name or FileOutputStream.

      Could I use a String? A File type?

      Right now it is a File variable type, and
      (FileOutputStream)varname does not work...

      I need to be able to convert between File and FileOutputStream depending on the situation...

      It does not seem possible. Is there a better way to do it?