Here's the scenario we're trying to do:
- I have a text file with a number of lines that vary in length
- Within that textfile, we have a wildcard (we settled with "#date" as the wildcard)
- What we need to do is process the file such that the output is that the same file, but with the wildcard replaced with a certain string parameter... For this example, let's say it's a date such as '2007-02-08'
So basically, we just want to change the contents of a certain file such that the file remains exactly the same, except for the wildcard (#date) being changed with the actual date parameter that we need ('2007-02-08')
Any suggestions? We're only familiar with the common BufferedReader BufferedWriter approach, but currently don't have any idea how we're going to use it. If there are any alternatives whatsoever, it will be greatly appreciated.
Start Free Trial