The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Checking for a file in file pattern before deleting it dsrookie UNIX for Dummies Questions & Answers 1 05-09-2008 05:29 PM
Deleting lines inside a file without opening the file toms Shell Programming and Scripting 3 09-24-2007 08:58 AM
Remove the contents of a file without deleting the file sumesh.abraham Shell Programming and Scripting 10 12-02-2006 05:35 PM
Deleting a file I don't own kumachan UNIX for Dummies Questions & Answers 5 09-19-2003 11:50 AM
Deleting log file s_aamir UNIX for Advanced & Expert Users 5 01-07-2002 11:05 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 11-14-2006
arunkumar_mca arunkumar_mca is offline
Registered User
  
 

Join Date: Oct 2004
Posts: 256
Zero bye file not deleting

Hi All...

The code i have written is

if(filename)
remove_files (filename);

and my remove function is
=========================================
void remove_files(char *rf)
{
if (remove(rf)==0)
printf("(%d) Deleting %s\n",getpid(), rf); // JC 10/24/2003
else
printf("(%d) Cannot delete %s\n",getpid(), rf);// JC 10/24/2003
}
=========================================================

The problem is if the file to be removed is a zero byte file it is not deleting . Please let me know how can i delete the zero byte file and let me know why remove is not removing zero byte file and how can i remove it ..


Thanks in advance,
Arun Kumar
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:32 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0