Reg:FILE OPERATIONS
hi,
iam newbie to linux i have met with an problem in priting TRACE MESSAGES to my project. i have done coding as below debug_init() { fp=fopen("debugfile"); } dprint() { fprinf(fp); } but problem here without closing the "debugfile" iam not able to find any data(printed previously) in that file, how can i overcome this problem? if any suggestions please let me know..! thx in ADV..! regards, shankar.:tisk: |
Assuming C, try http://www.codecogs.com/reference/c/stdio.h/fflush.php
|
All times are GMT -5. The time now is 12:31 PM. |