Re: Reading and writing file header
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > Re: Reading and writing file header




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Re: Reading and writing file header  
Kasee Palaniappan BE Msc


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-11-04 08:29 PM

Hi,
Is there any one, who could help me in knowing the header of the any
text file. I know there should be a header for each and every file,
which says the file size, file name, file exensions and so on. but I
could not find the exact details.





[ Post a follow-up to this message ]



    Re: Reading and writing file header  
Fletcher Glenn


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-11-04 08:29 PM



Kasee Palaniappan BE Msc wrote:
> Hi,
> Is there any one, who could help me in knowing the header of the any
> text file. I know there should be a header for each and every file,
> which says the file size, file name, file exensions and so on. but I
> could not find the exact details.

It's not a header, it's a directory entry.  For access to directory
information of any file, look at the man pages for opendir() and
readdir().  For just one file, you can also look at stat() or fstat().

--

Fletcher Glenn






[ Post a follow-up to this message ]



zapple is offline     Re: Re: Reading and writing file header  
zapple


View Ip Address Report This Message To A Moderator Edit/Delete Message


Click Here to See the Profile for zapple Click here to Send zapple a Private Message Find more posts by zapple Add zapple to your buddy list
 
04-15-04 12:02 PM

quote:
Originally posted by Fletcher Glenn Kasee Palaniappan BE Msc wrote: > Hi, > Is there any one, who could help me in knowing the header of the any > text file. I know there should be a header for each and every file, > which says the file size, file name, file exensions and so on. but I > could not find the exact details. It's not a header, it's a directory entry. For access to directory information of any file, look at the man pages for opendir() and readdir(). For just one file, you can also look at stat() or fstat(). -- Fletcher Glenn
Hi Thanks very much. My problem is, I would like to change a number of file nam es to other file names. For example, the file name of the one created from D igital Cameras are funny so I would like to change them without using any sh ell scripts, but with only C System level commands. With regards Kasee Palaniappan BE Msc www.geocities.com/kasee_pl




[ Post a follow-up to this message ]



    Re: Reading and writing file header  
Jens.Toerring@physik.fu-berlin.de


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-15-04 05:41 PM

zapple <zapple.14r7xn@mail.webservertalk.com> wrote:

> Fletcher Glenn wrote: 
[vbcol=seagreen]
> Thanks very much. My problem is, I would like to change a number of
> file names to other file names. For example, the file name of the one
> created from Digital Cameras are funny so I would like to change them
> without using any shell scripts, but with only C System level
> commands.

To rename a file there's a standard C function, appropriately
called rename(2):

int rename(const char *oldpath, const char *newpath);

It's declared in <stdio.h>.
Regards, Jens
--
\   Jens Thoms Toerring  ___  Jens.Toerring@physik.fu-berlin.de
\__________________________  http://www.toerring.de





[ Post a follow-up to this message ]



    Re: Reading and writing file header  
Kasee Palaniappan BE Msc


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-24-04 12:34 AM

zapple <zapple.14r7xn@mail.webservertalk.com> wrote in message news:<zapple.14r7xn@mail.webs
ervertalk.com>...
> Fletcher Glenn wrote: 
>  any 
>  file, 
>  I 
>
> Hi
> Thanks very much. My problem is, I would like to change a number of
> file names to other file names. For example, the file name of the one
> created from Digital Cameras are funny so I would like to change them
> without using any shell scripts, but with only C System level
> commands.
> With regards
> Kasee Palaniappan BE Msc
> www.geocities.com/kasee_pl


Hello,
Back again with doubts.
How to access System tray in windows with Java programming language.
Anyone can help?
Please
Thanks in advance
Kasee Palaniappan (Zapple)





[ Post a follow-up to this message ]



    Re: Reading and writing file header  
Barry Margolin


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-24-04 01:34 AM

In article <43dc270f.0404231520.6e15b1db@posting.google.com>,
zapple@email.com (Kasee Palaniappan BE Msc) wrote:

> How to access System tray in windows with Java programming language.
> Anyone can help?

This group is comp.unix.programming -- why would you expect answers to
Windows programming here?

--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:47 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register