Reading a File which passes a path and files that need to be deserialized
Hi All,
Question is this:
I would like to create a java program that basically reads a file that contains the following:
first line will be the path to the files
the next lines will be java files that are from OutputObject stream
So like this:
/home/test1/recording/
testfile1.bin
testfile2.bin
testfile3.bin
So I would read in the path, then I would read one file at a time, deserilizing it with xstream that I use with out issue, turning it to xml. I am having trouble reading the files in.
Any help would be great.
Thanks
What is it, exactly, that you need help with? If you're using XStream, then you surely must know how to read in and parse a text file...
xstream is fine,
What I have is multiple binary files that need to be reduced and turned into seperate xml files.
So I want to read in the path from the txt file I created.
Then I will piece together the path with the first file.
Then I will pass that using xstream that will write to a new xml file. Then I want to read the next file and pass through xstream which will write another xml file.
thanks
Tim
Basically a user would run this and all they need to do is create one file that will be able to reduce any binary files they have and turn them into xml.
I do not want users to pass one file at a time. So if they have 10 binary files, they should be able to update one text file with path and all the files they want to reduce and convert to xml.
Thanks