Not Able to get the return value
<p>i am using this function to read from a notepad file and fill the data in <code>char str[255]</code> but after I execute the function <code>str</code> is still empty.</p>

<pre><code>char str[255];

char* data_pull()
{
    std::ifstream in("C:/myfile.txt");
    if(!in){
        printf("\nCannot open the file");
       exit (1);
    }

    while(in){
        in.getline(str, 255);  
       printf(str);
    }

    in.close();
    return str;
}
</code></pre>
