tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

prop_dictionary_internalize_from_file help



I wrote the following program but keep getting:
prop_dictionary_internalize_from_file: No such file or directory

even though the file is definitely there!  Can someone help me figure
out what I'm doing wrong?


#include <stdio.h>
#include <prop/proplib.h>
#include <sys/errno.h>

int main (int argc, char *argv[])
{
        prop_dictionary_t pl;

        pl = prop_dictionary_internalize_from_file( argv[1] );
        if ( pl == NULL ) {
perror("prop_dictionary_internalize_from_file"); return 1; }
        prop_dictionary_externalize_to_file( pl, argv[2] );
        return 0;
}


Home | Main Index | Thread Index | Old Index