7 Replies Latest reply on Feb 14, 2008 12:43 AM by 807603

    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?