Writing a character to the beginning of the same file
- From: "SAM" <mshyamrao@xxxxxxxxx>
- Date: 27 Apr 2005 03:50:45 -0700
Hi,
I have program that pre-appends a character to a file. it is not
working.
Here is the problem.
I am not able to write a character to the beginning of the file without
affecting the previous content.
Is there any limit on the size of the line in UNIX text files?
I am doubtful if there is a line length limit for a text file. If there
is line limit then I can easily copy the content of the first line into
a temporary byte array and add the new character to be added to another
temporary byte array and append the old byte array to this new
temporary byte array and write the contents of the new array into the
same file at the beginning.
can u please help me.
SAM
.
- Follow-Ups:
- Re: Writing a character to the beginning of the same file
- From: Scott McPhillips [MVP]
- Re: Writing a character to the beginning of the same file
- Prev by Date: Re: FNV(Fowler/Novell/Vo) hashing algorithm
- Next by Date: Re: I need advise on what program to use.
- Previous by thread: Utilizing Idle Computer Resources
- Next by thread: Re: Writing a character to the beginning of the same file
- Index(es):
Relevant Pages
|