C# txt file

selected listbox item delete in txt file

Page 1 of 1

3 Replies - 2205 Views - Last Post: 02 January 2010 - 09:23 AM Rate Topic: -----

#1 soNer   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 28-December 09

C# txt file

Post icon  Posted 01 January 2010 - 09:30 PM

hi ı just want ,how ı can delete which ı selected item to listbox
but when ı delete it in listbox ı also want it to delete in txt file
Is This A Good Question/Topic? 0
  • +

Replies To: C# txt file

#2 JackOfAllTrades   User is offline

  • Saucy!
  • member icon

Reputation: 6246
  • View blog
  • Posts: 24,014
  • Joined: 23-August 08

Re: C# txt file

Posted 01 January 2010 - 10:33 PM

Open the file, read it into memory, delete the item, save the memory back to disk.
Was This Post Helpful? 0
  • +
  • -

#3 soNer   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 28-December 09

Re: C# txt file

Posted 02 January 2010 - 08:05 AM

View PostJackOfAllTrades, on 1 Jan, 2010 - 09:33 PM, said:

Open the file, read it into memory, delete the item, save the memory back to disk.

yes ı know theis solution but, ı want for example a listbox and a button the button is delet item in listbox; so when ı select item in listbox and ı press the delet button :ı want the item will delet on listbox and txt file
Was This Post Helpful? 0
  • +
  • -

#4 JackOfAllTrades   User is offline

  • Saucy!
  • member icon

Reputation: 6246
  • View blog
  • Posts: 24,014
  • Joined: 23-August 08

Re: C# txt file

Posted 02 January 2010 - 09:23 AM

So, show us what you've tried. :code:
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1