Thursday, April 12, 2012

Java Program read input from a text file and modify it accordingly

I am trying to create a java file that takes in a .txt file and produces another file according to the input.



More information would be the .txt file looks like this.



url = http://184.154.145.114:8013/wlraac name = wlr samplerate = 44100 channels =2 format = S16le~
url = http://newstalk.fmstreams.com:8080 name = newstalk samplerate = 22050 channels = 1 format = S16le


so far all i have is the program allows me to go select a file and when i do select the file it displays what the text file contains



the program needs to this
create the another file with this information with the following modificiations
if the samplerate is not 44100 it changes it to 44100
and if the channels are not one it changes them to 1
then it gets rid of the following parts completely url = name = and so forth
Is this possible and if so any help would be appreciated



Thanking You





No comments:

Post a Comment