|
|
||||||
|
#1
|
|
|
|
|
Can anyone please help me in writing the code in C++ :
I want a read a file line by line,remove the lines which have length of a particular field in a line exceeding 63 characters After removing the line the corresponding blank spaces generated after removal of the line also needs to be removed. .. I am in urgent need for this solution.Kindly help how to go about it. Thanks in advance , Kaushik |
|
|
|
#2
|
|
|
|
|
"kaushikshome" writes:
> Can anyone please help me in writing the code in C++ : > > I want a read a file line by line,remove the lines which have length of > a particular field in a line exceeding 63 characters After removing the > line the corresponding blank spaces generated after removal of the > line also needs to be removed. > . > I am in urgent need for this solution.Kindly help how to go about it. Where is your problem at? Can you open a file? read a line? write a line? What is it you can't do? |
|
#3
|
|
|
|
|
In article <1157902712.101795.254070>,
kaushikshome says... > Can anyone please help me in writing the code in C++ : > > I want a read a file line by line,remove the lines which have length of > a particular field in a line exceeding 63 characters After removing the > line the corresponding blank spaces generated after removal of the > line also needs to be removed. > . > I am in urgent need for this solution.Kindly help how to go about it. You can't delete data from the middle of the file, so you have to copy data from the existing file to a new file, skipping over the parts you don't want. |
|
#4
|
|
|
|
|
Boss I am new at C++ programming.....how can I open , read and write it
to a new file after ignoring certain lines..kindly tell me how to go about it...(code) Regards, Kaushik osmium wrote: [..] |
|
#5
|
|
|
|
|
Ok...let me analyse it and I shall get back to u soon..
thanks for replying.. regards, Kaushik Jerry Coffin wrote: [..] |
|
|
| Similar Threads | |
| Read a file line by line and write each line to a file based on the5th byte I have a file that can have 5 different values in the 5th byte of the line. I want to read each line and write that line to a new file based on the 5th byte. The byte ascii... |
|
| How to store/read listbox items in a text file line by line (with line break) ? Hi, I want to save all the item content of a listbox line by line into a simple text file then recall them when my project is opened. For example listbox1 contains: That ... |
|
| Fast way to read a text file line by line Hi, currently I am reading a huge (about 10-100 MB) text-file line by line using fstreams and getline. I wonder whether there is a faster way to read a file line by line... |
|
| Read line by line from a text file I'm trying to read line by line from a text file in a pocket pc app. When I run this code i get 1 message box where I should get 2, 1 after another, because there are 2... |
|
| Read a file line by line with a maximum number of characters per line Hello, I want to read a file line by line. I first used the readLine() method which returns a string, but if the line contains too much characters I'm ending with an... |
|
|
All times are GMT. The time now is 11:16 AM. | Privacy Policy
|