Click here to Skip to main content
15,867,686 members
Home / Discussions / C#
   

C#

 
QuestionFinding the MDAC Version programmically? Pin
BssDeveloper30-Jul-07 13:41
BssDeveloper30-Jul-07 13:41 
AnswerRe: Finding the MDAC Version programmically? Pin
Paul Conrad30-Jul-07 14:06
professionalPaul Conrad30-Jul-07 14:06 
AnswerRe: Finding the MDAC Version programmically? Pin
Vasudevan Deepak Kumar30-Jul-07 17:51
Vasudevan Deepak Kumar30-Jul-07 17:51 
GeneralRe: Finding the MDAC Version programmically? Pin
BssDeveloper30-Jul-07 21:44
BssDeveloper30-Jul-07 21:44 
Questionnotification of change Pin
likefood30-Jul-07 12:28
likefood30-Jul-07 12:28 
QuestionWeb.Config file problem... Any Help? Pin
rashadaliarshad30-Jul-07 11:40
rashadaliarshad30-Jul-07 11:40 
AnswerRe: Web.Config file problem... Any Help? Pin
Edwin Syarief30-Jul-07 15:54
Edwin Syarief30-Jul-07 15:54 
QuestionBinary File Access Pin
JamesBarnes30-Jul-07 10:09
JamesBarnes30-Jul-07 10:09 
I want to be able to write data, to a file in a particular place, and read it back from that location.

The code i have below will write the data to the file with no issues, but i cant figure out how to get it to read it back. Any help is appreciated,

Thanks Smile | :)



<br />
private void button1_Click(object sender, EventArgs e)<br />
        {<br />
            FileStream fs = new FileStream("test.dat",FileMode.OpenOrCreate,FileAccess.ReadWrite);<br />
            BinaryWriter bw = new BinaryWriter(fs);<br />
            BinaryReader br = new BinaryReader(fs);<br />
<br />
            bw.Seek(10,SeekOrigin.Begin);<br />
            bw.Write("hello World");<br />
<br />
            bw.Seek(-10, SeekOrigin.End);<br />
            <br />
            string myString = br.ReadString();<br />
<br />
            MessageBox.Show(myString); <br />
  }<br />

AnswerRe: Binary File Access Pin
Luc Pattyn30-Jul-07 10:27
sitebuilderLuc Pattyn30-Jul-07 10:27 
GeneralRe: Binary File Access Pin
PIEBALDconsult30-Jul-07 10:44
mvePIEBALDconsult30-Jul-07 10:44 
GeneralRe: Binary File Access Pin
Luc Pattyn30-Jul-07 10:51
sitebuilderLuc Pattyn30-Jul-07 10:51 
AnswerRe: Binary File Access Pin
PIEBALDconsult30-Jul-07 10:37
mvePIEBALDconsult30-Jul-07 10:37 
GeneralRe: Binary File Access Pin
JamesBarnes30-Jul-07 11:17
JamesBarnes30-Jul-07 11:17 
QuestionNewspaper columns in control Pin
Elvis_Pretzelator30-Jul-07 9:18
Elvis_Pretzelator30-Jul-07 9:18 
JokeRe: Newspaper columns in control Pin
BoneSoft30-Jul-07 9:22
BoneSoft30-Jul-07 9:22 
AnswerRe: Newspaper columns in control Pin
Luc Pattyn30-Jul-07 9:31
sitebuilderLuc Pattyn30-Jul-07 9:31 
AnswerRe: Newspaper columns in control Pin
ekynox30-Jul-07 23:53
ekynox30-Jul-07 23:53 
AnswerRe: Gridview column data [modified] Pin
Herman<T>.Instance31-Jul-07 3:08
Herman<T>.Instance31-Jul-07 3:08 
QuestionSQL Data Pin
Saiyed Alam30-Jul-07 8:30
Saiyed Alam30-Jul-07 8:30 
AnswerRe: SQL Data Pin
BoneSoft30-Jul-07 9:55
BoneSoft30-Jul-07 9:55 
QuestionTab Order Pin
Saiyed Alam30-Jul-07 8:08
Saiyed Alam30-Jul-07 8:08 
AnswerRe: Tab Order Pin
Martin#30-Jul-07 8:09
Martin#30-Jul-07 8:09 
GeneralRe: Tab Order Pin
Saiyed Alam30-Jul-07 8:15
Saiyed Alam30-Jul-07 8:15 
AnswerRe: Tab Order Pin
Luis Alonso Ramos30-Jul-07 8:44
Luis Alonso Ramos30-Jul-07 8:44 
AnswerRe: Tab Order Pin
Paul Conrad30-Jul-07 10:44
professionalPaul Conrad30-Jul-07 10:44 

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.