Posted By: Tempelbauer
Cant write into files - 08/15/10 21:34
hi
maybe i get stupid, but i cant write a string in a file. this is my code:
i call this function in main using
i get "Crash in foo: SYS" (Error E1513)
the exception is thrown by the file_str_write-function (i´ve debugged it)
the file is created on disk
the directory is a normal dir. other programs can write files in it without restrictions
where is the problem?? this is driving me insane...
maybe i get stupid, but i cant write a string in a file. this is my code:
Code:
int foo(STRING* file) { int f = file_open_write(file); if(f!=0) { STRING* out = "test"; file_str_write(f,out); file_close(f); } }
i call this function in main using
Code:
foo("E:\\Dokumente\\out.txt");
i get "Crash in foo: SYS" (Error E1513)
the exception is thrown by the file_str_write-function (i´ve debugged it)
the file is created on disk
the directory is a normal dir. other programs can write files in it without restrictions
where is the problem?? this is driving me insane...