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

[603 byte] By [tooltime185a] at [2007-11-26 15:52:43]
# 1
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...
kevjavaa at 2007-7-8 22:13:03 > top of Java-index,Java Essentials,New To Java...
# 2
What trouble are you having exactly? This is the key point of your post but you don't tell us what is not working.
cotton.ma at 2007-7-8 22:13:03 > top of Java-index,Java Essentials,New To Java...
# 3

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

tooltime185a at 2007-7-8 22:13:03 > top of Java-index,Java Essentials,New To Java...
# 4

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

tooltime185a at 2007-7-8 22:13:03 > top of Java-index,Java Essentials,New To Java...
# 5
All set on this, worked it myself without issue.Should of gave myself more time.
tooltime185a at 2007-7-8 22:13:03 > top of Java-index,Java Essentials,New To Java...