Click here to Skip to main content
15,887,214 members
Home / Discussions / C#
   

C#

 
GeneralRe: intenal and internal protected Pin
Vikram A Punathambekar30-Jul-07 22:17
Vikram A Punathambekar30-Jul-07 22:17 
AnswerRe: intenal and internal protected Pin
pavanteja30-Jul-07 23:31
pavanteja30-Jul-07 23:31 
GeneralRe: intenal and internal protected Pin
Sonia Gupta30-Jul-07 23:36
Sonia Gupta30-Jul-07 23:36 
GeneralRe: intenal and internal protected Pin
originSH31-Jul-07 0:08
originSH31-Jul-07 0:08 
QuestionACESS and C#! NID HELP!!! Pin
oyams9030-Jul-07 17:46
oyams9030-Jul-07 17:46 
AnswerRe: ACESS and C#! NID HELP!!! Pin
Christian Graus30-Jul-07 17:55
protectorChristian Graus30-Jul-07 17:55 
AnswerRe: ACESS and C#! NID HELP!!! Pin
V.30-Jul-07 20:18
professionalV.30-Jul-07 20:18 
QuestionHi Want to Add Font.ttf to resx Pin
CodeVarma30-Jul-07 17:12
CodeVarma30-Jul-07 17:12 
AnswerRe: Hi Want to Add Font.ttf to resx Pin
Thomas Stockwell4-Aug-07 12:58
professionalThomas Stockwell4-Aug-07 12:58 
Questionstore procedure Pin
daku130-Jul-07 15:31
daku130-Jul-07 15:31 
AnswerRe: store procedure Pin
T.EDY30-Jul-07 15:53
T.EDY30-Jul-07 15:53 
QuestionBest way to shift towards .NET... Pin
Matt Gullett30-Jul-07 15:15
Matt Gullett30-Jul-07 15:15 
AnswerRe: Best way to shift towards .NET... Pin
Christian Graus30-Jul-07 17:56
protectorChristian Graus30-Jul-07 17:56 
GeneralRe: Best way to shift towards .NET... Pin
Matt Gullett30-Jul-07 23:48
Matt Gullett30-Jul-07 23:48 
QuestionUse store procedure in ASP.NET Pin
daku130-Jul-07 14:44
daku130-Jul-07 14:44 
QuestionRe: Use store procedure in ASP.NET Pin
T.EDY30-Jul-07 15:38
T.EDY30-Jul-07 15:38 
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 

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.