Question: I need to make some changes to Qt 4.7.1, so I need to add it to my subversion server to track my changes. However, once it's added, the configure script fails. I'm guessing it's choking on the .svn files. 

I'm using Windows. Is there any way to add Qt to subversion, delete all the .svn folders, configure and build it, recreate the .svn folders, and then submit my changes?

Or is there any other work around? The error I get is 'Couldn't update default mkspec'

Answer: 
Iterator over the array, and write the current element.

```
    String document[] = {"String1","String2","String3"};
    PrintWriter outputFile = 
        new PrintWriter(new BufferedWriter(new FileWriter(docName)));
     int lineNo = 1;

     for(int i = 0; i < document.length; i++)
     {  outputFile.println(document[i]);
        lineNo++;
     }

```
```
// myDoc is the "array of string"
foreach (String line : myDoc) {
    outputFile.println(line);
}

```