Question: I am using coordinatorlayout in my android application and is defined as following 

```
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
                                             xmlns:tools="http://schemas.android.com/tools"
                                             android:layout_width="match_parent"
                                             android:layout_height="match_parent"
                                             android:theme="@style/Theme.AppCompat.Light.DarkActionBar"
                                             tools:context=".MainActivity">

<android.support.design.widget.AppBarLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content">

    <android.support.v7.widget.Toolbar
        android:id="@+id/toolbar_activity_main"
        android:layout_width="match_parent"
        android:layout_height="?attr/actionBarSize"
        android:background="?attr/colorPrimary"
        android:elevation="4dp"
        android:theme="@style/ThemeOverlay.AppCompat.ActionBar">

    </android.support.v7.widget.Toolbar>
</android.support.design.widget.AppBarLayout>

<include
    layout="@layout/content_main"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:id="@+id/test"/>

```

The test layout is `LinearLayout` which has a further Views

The problem is that the actionbar is overlapping the content of the Test Layout

Could this because of the themes ? (which i personally dont feel ) but then not sure

Answer: 
```
int main(void) {
 [[NSFileManager defaultManager] createFileAtPath:@"knownTimeZoneNames.txt" contents:nil attributes:nil];

NSMutableString *timeZones = [[NSMutableString alloc] init];
for (NSString *name in [NSTimeZone knownTimeZoneNames]) {
    [timeZones appendFormat:@"%@\n", name];    
}
[timeZones writeToFile:@"knownTimeZoneNames.txt" atomically:YES encoding:NSUTF8StringEncoding error:nil];

return 0;
}

```
Please, try this

```
for (NSString *name in [NSTimeZone knownTimeZoneNames]) {
     // You was trying to pass chars, but you have to pass string.   
    [name writeToFile:@"knownTimeZoneNames.txt" atomically:YES encoding:NSUTF8StringEncoding error:nil];
    //      NSLog(@"The time zone is %@", name);
}

```