LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-22-2011, 10:58 AM   #1
shankar.489
Member
 
Registered: Jan 2011
Posts: 53

Rep: Reputation: 0
Angry 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.
 
Old 06-22-2011, 06:44 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Assuming C, try http://www.codecogs.com/reference/c/stdio.h/fflush.php
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
File/directory operations in C MTK358 Programming 1 05-05-2010 08:45 AM
file operations through block driver archanac07 Linux - Software 4 01-28-2010 05:21 AM
file operations API for Device driver gilh Programming 1 06-04-2009 04:22 AM
where are file structure operations defined?? saumitra Programming 1 04-07-2007 01:29 PM
file operations in BASH snorky Linux - Newbie 2 11-24-2003 07:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration