--- Sarad AV <[EMAIL PROTECTED]> wrote:
> hi,
> 
> Most operating systems support empty files while
> some
> don't
> 
> eg:
> 
> In ms-dos copy con file followed by a control Z
> does not create a file since it is empty.
> 
> The ms-dos edit file(editor) creates empty files may
> be because it has a save option in the options.
> 
All operating system support empty files. Here, IMHO,
it is the  editor restricting it.
> In *nix both the cat and vi allows empty files to be
> created.
> 
Try vim on windows. I will create 0 byte file
> I wonder what is the need for creating empty files
> in
> the first place.we need files  when we need to store
> data,other wise what is the use.
> if it was an email account you would like to make an
> empty registeration ,even if he doesnot use it since
> some body else can register his name.
> how ever in the case of ordinary files,we alone and
> always have access and read-write-execute 
> privelages
> over our files. why do we need an option to create
> empty files.It is certainly an option of the OS but
> what is the need for it?
> 
An application controls why it needs an empty file.
e.g.  daemon's uses this as lock to prevent multiple
instance coming up.

programming for IPC also can make use of zero byte
file.


> Thank You.
> 

__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com


-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing 
your web site with SSL, click here to get a FREE TRIAL of a Thawte 
Server Certificate: http://www.gothawte.com/rd524.html
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to