Jump to content

how do i save/read files on visual c#

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
eli2beli

eli2beli

    Newbie

  • Members
  • Pip
  • 1 posts
well i am a beginner in programming i learned c but most of my work was on the black window.
now i am trying to use windows application on visual c# to make a program that arrange your monthly work hours .

so my question is ...i made a listbox and i made a textbox and a button when i write a name in the text box and then click the button
the name appear in the listbox so now i want that at the exact moment a file with the exact name will appear on the program library
what is the code to do it?and how do i write into a file?

#2
Datab0x

Datab0x

    Newbie

  • Members
  • PipPip
  • 14 posts
So wait... are you trying to write the content thats in the text box into an already made file or are you trying to make a new file with the name of the textbox content?

#3
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
You can use System.IO.StreamWriter to write to a file.
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums