Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
delete-line
- Page 1
i want delete line from my csv file after echo or process this line
Programming
Web Development
14 Years Ago
by hassan12345
hi i want to
delete
line
from my csv file after echo or process this
line
can any one help???????????? thanks in advance!!!!! here…>"; //now after show or processed i want to
delete
this
line
($csv_line) } } fclose($fp) or die("can't close…
how delete line or row number 3 of csv file
Programming
Web Development
14 Years Ago
by hassan12345
how to
delete
line
number 3 or any
line
of my csv file ????????????????? like test.csv 1.jhon 2.sarah 3.ricky //
delete
this row of csv 4.martin
Delete specific line in file
Programming
Software Development
14 Years Ago
by Neversleepin
…, but it's not working: i want to
delete
line
1 and 2 of the text file. [CODE…public class ReadSpecificLine { public static void main(String[] args){ String
line
= ""; int lineNo; try { FileReader fr =… (IOException e) { e.printStackTrace(); } System.out.println("
Line
: " +
line
); } } [/CODE] Thank you
Delete Data From File
Programming
Web Development
14 Years Ago
by Erco21
…User2 435345 User3 234234 User3 234924 Now, i need to
delete
one user from that txt file, along with number that… after the user so lets say that i entered in
delete
form: User1 , then i would like my txt file … User3 234324 I tried with deleting it by lines (
delete
line
1, then
delete
line
2, but it really didnt work properly, also i…
Re: delete first line from a text file
Programming
Software Development
17 Years Ago
by Ancient Dragon
>>at this
line
if
line
='\n' do nothing only read lines 1 to 7 Look … that's already in memory. So you need to just
delete
line
11 because it can cause an infinit loop that will… output file then just start the loop that begins on
line
8 with 8 instead of 0 [code] for(int i…
delete first line from a text file
Programming
Software Development
17 Years Ago
by mannantes
… 3 1.574303 129 -15.378240 [/LIST] [/CODE] i want
delete
line
number 1 and 8. and after I want to compare…
Re: delete line + next line, if word match
Programming
Software Development
16 Years Ago
by Aia
…g. awk or sed) which deletes the whole
line
containing the name, plus next
line
. but it must be exact match, deleting… word, followed by tab sed '/test/d' < file ....... will
delete
all lines sed '/test /d' < file ...... will not find…that. Once the pattern is matched, it deletes from that
line
to the end of the following one. [CODE=bash]sed…
Re: delete line + next line, if word match
Programming
Software Development
16 Years Ago
by Pender
i have no clue how to match the regexp for a word, followed by tab sed '/test/d' < file ....... will
delete
all lines sed '/test /d' < file ...... will not find anything how can i check for the followed tab?
Delete line from form vb.net
Programming
Software Development
13 Years Ago
by davesexcel
…enter Numbers in the textboxes and click "Draw
Line
" button. If the user wants to enter… and click the button again, how can that
line
be deleted before a new one is drawn? … canvas ' Set the starting and ending coordinates for the
line
. theLine.StartPoint = New System.Drawing.Point(0, 0) …
delete line + next line, if word match
Programming
Software Development
16 Years Ago
by Pender
….g. awk or sed) which deletes the whole
line
containing the name, plus next
line
. but it must be exact match, deleting…
Re: i want delete line from my csv file after echo or process this line
Programming
Web Development
14 Years Ago
by hassan12345
my csv file is so big it has more than 1 Lac lines. so i cant offered to
delete
each
line
in end of program,,,,i want
delete
each
line
after display or process (display
line
,then
delete
this
line
=>display
line
,then
delete
this
line
..............)
Re: how delete line or row number 3 of csv file
Programming
Web Development
14 Years Ago
by hassan12345
my csv file is so big it has more than 1 Lac lines. so i cant offered to
delete
each
line
in end of program,,,,i want
delete
each
line
after display or process (display
line
,then
delete
this
line
=>display
line
,then
delete
this
line
..............)
Re: how delete line or row number 3 of csv file
Programming
Web Development
14 Years Ago
by diafol
… you want the numbers to follow, or will a simple
delete
do? You can: 1. get the contents of the file… with explode(), use "\n" as a delimiter. 3.
delete
the 3rd entry ('2') with array_splice(). 4. implode the array…
Update/Delete SQL Records
Programming
Web Development
15 Years Ago
by nelliott10
… user to go to a different page to update and
delete
the information, which can be seen below: - Update: - [CODE]<….php?barcode=".$user["barcode"]."\">
Delete
Line
</a>[/CODE] I also attached the other related…
Re: Update/Delete SQL Records
Programming
Web Development
15 Years Ago
by cwarn23
… that problem when used properly. Also in your
delete
line
file I noticed on
line
3 there is a possible syntax error since…
Re: edit text with sequence and delete line in txt file
Programming
Software Development
11 Years Ago
by Ssyxz
… file for writing Start a loop for 3 iterations Read
line
from input (we'll call this sub) Start a loop… for 6 iterations Read
line
from input (we'll call this base) Use String.Replace…
Re: edit text with sequence and delete line in txt file
Programming
Software Development
11 Years Ago
by sch85
ssyzz, thanks for your reply. However I am not sure what do you mean by: Start a loop for 3 iterations **Read
line
from input (we'll call this sub)** Start a loop for 6 iterations **Read
line
from input (we'll call this base)** Can you please show me the code example in C#? Thanks.
Re: edit text with sequence and delete line in txt file
Programming
Software Development
11 Years Ago
by pitic
Do a File.ReadLines(), loop the lines and try parsing each
line
to a double value. If it succedes you have your text to fill up the lines until the following double exists.
edit text with sequence and delete line in txt file
Programming
Software Development
11 Years Ago
by sch85
… "(5,25)"? In the meantime, I want to
delete
"5,5", "5,15" and "…
Re: Delete specific line in file
Programming
Software Development
14 Years Ago
by Neversleepin
… can read some specific
line
from my file. it's working good, but now how could i
delete
them. Here i can… read text from
line
15 to 20 and form
line
30 to 40. these… file content more than 20000 lines. and i have to
delete
10 lines at 10 specific place in the text, maybe…
Re: Delete specific line in file
Programming
Software Development
14 Years Ago
by JamesCherrill
I don't think there is any way to
delete
lines in the middle of a file. What you can do is to copy the file to a new file, only writing the lines you want to keep.
Re: delete first line from a text file
Programming
Software Development
17 Years Ago
by twomers
…input file stream ([inlinecode]while( std::getline(in,
line
) )[/inlinecode]), where
line
is a std::string), and keep a running total…inlinecode]), and if the
line
number matches the numbers you want to
delete
don't save the
line
to the output file.… Else save it. If you want to
delete
the original…
Re: Delete specific line in file
Programming
Software Development
14 Years Ago
by bibiki
I tried to compile your code, but as I expected
line
17 complains. besides, = is not a comparison operator, I assumed you meant ==. check that first!
Re: Delete specific line in file
Programming
Software Development
14 Years Ago
by bibiki
i think each
line
is read as a single string. as a result, you …could temporarily store your file in a String array, each
line
, one element on the array. and then, you put back…
Re: delete first line from a text file
Programming
Software Development
17 Years Ago
by Ancient Dragon
If you want to
delete
those lines from the file itself then you have to … read a
line
from the original file and if it is not one of the lines you want to
delete
write it… the file has been completely read close both file, then
delete
the original file and rename the temp to the original…
Re: delete first line from a text file
Programming
Software Development
17 Years Ago
by Ancient Dragon
…; #include <iostream> using namespace std; int main() { string
line
; // open input file ifstream in("infile.txt"); if… to write the
line
while( getline(in,
line
) ) { out <<
line
<< "\n"; } in.close(); out.close(); //
delete
the original…
Re: Delete Data From File
Programming
Web Development
14 Years Ago
by chrishea
… rename the output file to the original input file name
delete
the original input file or move it to an archive…
Re: delete first line from a text file
Programming
Software Development
17 Years Ago
by mannantes
[QUOTE=Ancient Dragon;464449]What are you tring to do at
line
11? With that semicolon at the end that
line
does nothing.[/QUOTE] at this
line
if
line
='\n' do nothing only read lines 1 to 7. and now i want read
line
8 to 14 because i want compare
line
14 with other lines like this of my second file txt to merge them
Re: delete first line from a text file
Programming
Software Development
17 Years Ago
by Ancient Dragon
… Each section of exampleFile.txt is separated by a
line
that begings with the text [b]telemetre_[/b]. …names ? Are the names the same as the first section
line
? such as [b]telemetre_18_04_2007_11h_23_mn_15sec.dbt[/b] ? And you…same then continue the file loop and read another
line
from exampleFile.txt. If however they are not the…
Re: delete first line from a text file
Programming
Software Development
17 Years Ago
by mannantes
… Each section of exampleFile.txt is separated by a
line
that begings with the text [b]telemetre_[/b]. …names ? Are the names the same as the first section
line
? such as [b]telemetre_18_04_2007_11h_23_mn_15sec.dbt[/b] ? And you…same then continue the file loop and read another
line
from exampleFile.txt. If however they are not the…
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC