Using FileFactory
Using FileFactory
Is there a way to use FileFactory to write to a file from a String as input? I have to write string data to an hfs file and a mvs file.
Re: Using FileFactory
How about:
String someString = "abcdefg\nhijklmnop\nqrstuv\nwxyz\n";
BufferedWriter wtr = FileFactory.newBufferedWriter(filenameOrDSN);
wtr.write(someString);
wtr.close();
String someString = "abcdefg\nhijklmnop\nqrstuv\nwxyz\n";
BufferedWriter wtr = FileFactory.newBufferedWriter(filenameOrDSN);
wtr.write(someString);
wtr.close();
Re: Using FileFactory
thx you for the example. I need to add a little more information. I'm using BMC's contorlm automation api(s). One of the classes have a method that takes in two File type arguments. the two files contain json data. What i'm trying to do is provide is a File type variable but referencing a z/os file through jzos.