Click here to Skip to main content
15,888,803 members
Home / Discussions / C#
   

C#

 
JokeRe: internet speed Pin
Ed.Poore11-Sep-07 2:53
Ed.Poore11-Sep-07 2:53 
QuestionActiveX Exception Pin
DeepOceans11-Sep-07 2:12
DeepOceans11-Sep-07 2:12 
AnswerRe: ActiveX Exception Pin
Justin Perez11-Sep-07 2:27
Justin Perez11-Sep-07 2:27 
GeneralRe: ActiveX Exception Pin
DeepOceans11-Sep-07 21:43
DeepOceans11-Sep-07 21:43 
Questionhow do i delete lines from .txt file? "Urgent!" Pin
andredani11-Sep-07 2:04
andredani11-Sep-07 2:04 
AnswerRe: how do i delete lines from .txt file? "Urgent!" Pin
Christian Wulff11-Sep-07 2:21
Christian Wulff11-Sep-07 2:21 
GeneralRe: how do i delete lines from .txt file? "Urgent!" Pin
andredani11-Sep-07 3:24
andredani11-Sep-07 3:24 
GeneralRe: how do i delete lines from .txt file? "Urgent!" Pin
Christian Wulff11-Sep-07 6:37
Christian Wulff11-Sep-07 6:37 
andredani wrote:
now it only deletes the lines hwo gets in use, right?


Yes, it should only write the lines which are not used in the temp file (and therewith deleting the used lines).
andredani wrote:
can u help me with a counter for this:
if subitem[0] and subitem[1] matches with a lines[idex +1] and a lines[idex +2] then calculate subitems[1] with +1.


I'm not quite sure that i understand what you mean. Let's assume your file looks like (I added line numbers):
# (line 1)
5 (line 2)
6 (line 3)
5 (line 4)
6 (line 5)

Normally your SubItems would be filled like this:
SubItems[0] = 5
SubItems[1] = 6
SubItems[3] = 5
SubItems[5] = 6

But because line 2 = line 4 and line 3 = line 5 you want to add 1 to SubItems[1], so that the SubItems are:

SubItems[0] = 5
SubItems[1] = 7 (6 from line 3 + 1)
SubItems[3] = 5
SubItems[5] = 6

Is that what you mean?
GeneralRe: how do i delete lines from .txt file? "Urgent!" Pin
andredani11-Sep-07 9:03
andredani11-Sep-07 9:03 
GeneralRe: how do i delete lines from .txt file? "Urgent!" Pin
Christian Wulff11-Sep-07 11:18
Christian Wulff11-Sep-07 11:18 
GeneralRe: how do i delete lines from .txt file? "Urgent!" [modified] Pin
andredani11-Sep-07 12:15
andredani11-Sep-07 12:15 
AnswerRe: how do i delete lines from .txt file? "Urgent!" Pin
pmarfleet11-Sep-07 2:28
pmarfleet11-Sep-07 2:28 
QuestionSelecting unique nodes from an XML file Pin
Rocky#11-Sep-07 1:43
Rocky#11-Sep-07 1:43 
AnswerRe: Selecting unique nodes from an XML file Pin
Ed.Poore11-Sep-07 2:55
Ed.Poore11-Sep-07 2:55 
GeneralRe: Selecting unique nodes from an XML file Pin
Rocky#11-Sep-07 3:01
Rocky#11-Sep-07 3:01 
GeneralRe: Selecting unique nodes from an XML file Pin
Ed.Poore11-Sep-07 3:45
Ed.Poore11-Sep-07 3:45 
GeneralRe: Selecting unique nodes from an XML file Pin
Rocky#11-Sep-07 20:38
Rocky#11-Sep-07 20:38 
GeneralRe: Selecting unique nodes from an XML file Pin
Ed.Poore11-Sep-07 22:40
Ed.Poore11-Sep-07 22:40 
AnswerRe: Selecting unique nodes from an XML file Pin
Rocky#12-Sep-07 0:42
Rocky#12-Sep-07 0:42 
QuestionMFC-like programming Pin
perrin486911-Sep-07 1:39
perrin486911-Sep-07 1:39 
AnswerRe: MFC-like programming Pin
originSH11-Sep-07 2:00
originSH11-Sep-07 2:00 
GeneralRe: MFC-like programming Pin
perrin486911-Sep-07 2:24
perrin486911-Sep-07 2:24 
AnswerRe: datagridview update database error Pin
Rocky#11-Sep-07 1:41
Rocky#11-Sep-07 1:41 
GeneralRe: datagridview update database error Pin
Rocky#11-Sep-07 2:23
Rocky#11-Sep-07 2:23 
GeneralRe: datagridview update database error Pin
Rocky#11-Sep-07 2:58
Rocky#11-Sep-07 2:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.