Question

5
Replies
1903
Views
Balasubramanian Member since 2012 1 post
TCS
Posted: 3 years ago
Last activity: 3 years 11 months ago
Closed

How to include and use FileOutputStream and File packages into a java step in an activity

Am trying to use the
java.io.File & java.io.FileOutputStream in the java step of the activity and  even after the declaration of these two am unable to use the codes like 

ofile = new File("/apps/etc/testFile.pdf");

fos= new FileOutputStream(ofile);

For both the above commands am getting error : File cannot be resolved to a type & File cannot be resolved to a type

Do I need to need to import any kind of package to support the Files ?

Data Integration Java and Activities
Moderation Team has archived post
Share this page LinkedIn