Question: I have a form with some input fields and checkboxes. The route looks like this:

```
SharedContentNewRoute = Ember.Route.extend
  setupController: (controller) ->
    content = @modelFor("content")
    controller.set('content', @store.createRecord('shared_content'))
    controller.set('handles', @store.find("handle"))

```

*shared\_content* model has, among other attributes, a *handle\_ids* array attribute which needs to be populated with ids of checked checkboxes. Template for populating checkboxes (available handles) is defined within *shared\_content/new* template:

```
...
{{#each handles}}
  <div class="checkbox">
    {{input type="checkbox" id=id}}
    <label {{bind-attr for="id"}}>{{data.name}}</label>
  </div>
{{/each}}
...

```

The problem is I need to get the checked checkboxes ids and put them into handle\_ids attribute of the *shared\_content* model (which is the model for this template) before the model gets saved. Is there a nice solution for this kind of binding?

Answer: 
`infile` should be a char\* containing a string with the file location. Not a `FILE*`.

See the documentation for [fopen](http://www.cplusplus.com/reference/cstdio/fopen/).
You used the fopen() wiht a wrong argument !
fopen() return a FILE\*, and get a const char\* as first argument.
The man can help you :

```
NAME
       fopen, fdopen, freopen - stream open functions

SYNOPSIS
       #include <stdio.h>

       FILE *fopen(const char *path, const char *mode);

       FILE *fdopen(int fd, const char *mode);

       FILE *freopen(const char *path, const char *mode, FILE *stream);

   Feature Test Macro Requirements for glibc (see feature_test_macros(7)):

       fdopen(): _POSIX_C_SOURCE >= 1 || _XOPEN_SOURCE || _POSIX_SOURCE

```