Click here to Skip to main content
15,899,679 members
Home / Discussions / C#
   

C#

 
Questionwriting to a text file that may not exsist Pin
alostdruid16-Feb-07 18:47
alostdruid16-Feb-07 18:47 
AnswerRe: writing to a text file that may not exsist Pin
Stefan Troschuetz16-Feb-07 20:51
Stefan Troschuetz16-Feb-07 20:51 
AnswerRe: writing to a text file that may not exsist Pin
Wayne Phipps17-Feb-07 3:34
Wayne Phipps17-Feb-07 3:34 
QuestionCube and Data mining on Forms, how? Pin
TrooperIronMan16-Feb-07 14:49
TrooperIronMan16-Feb-07 14:49 
QuestionDataGridView - Bound to XMLDataDoc [modified] Pin
CopperMedal16-Feb-07 14:20
CopperMedal16-Feb-07 14:20 
AnswerRe: DataGridView - Bound to XMLDataDoc Pin
CopperMedal17-Feb-07 8:07
CopperMedal17-Feb-07 8:07 
Questionfile transfer Pin
giltendezm16-Feb-07 14:16
giltendezm16-Feb-07 14:16 
AnswerRe: file transfer Pin
Niiiissssshhhhhuuuuu16-Feb-07 16:47
Niiiissssshhhhhuuuuu16-Feb-07 16:47 
Hello,

I havent tried through UDP but I have successfully done through TCP packets.

System.IO.FileStream fstream = new System.IO.FileStream(files[j].FullName, System.IO.FileMode.Open, System.IO.FileAccess.Read);
byte[] buffer = new byte[fstream.Length];
fstream.Read(buffer, 0, buffer.Length);
fstream.Close();
//writing to the network stream//
outStream = this.Client.GetStream();
for (int i = 0; i < buffer.Length; i++)
{
//outStream.Write(buffer, 0, buffer.Length);
outStream.WriteByte(buffer[i]);
}
outStream.Close();
You just need to transfer bytes.
Try this and tell me..Cool | :cool: Cool | :cool:
Regards Rose | [Rose] ,

nishu
GeneralRe: file transfer Pin
giltendezm16-Feb-07 18:01
giltendezm16-Feb-07 18:01 
GeneralRe: file transfer Pin
Niiiissssshhhhhuuuuu16-Feb-07 19:18
Niiiissssshhhhhuuuuu16-Feb-07 19:18 
GeneralRe: file transfer Pin
Niiiissssshhhhhuuuuu16-Feb-07 19:27
Niiiissssshhhhhuuuuu16-Feb-07 19:27 
GeneralRe: file transfer Pin
giltendezm16-Feb-07 19:49
giltendezm16-Feb-07 19:49 
GeneralRe: file transfer Pin
Niiiissssshhhhhuuuuu16-Feb-07 19:56
Niiiissssshhhhhuuuuu16-Feb-07 19:56 
QuestionExcel ListObject to XmlDocument C# [modified] Pin
Raghutoo16-Feb-07 13:13
Raghutoo16-Feb-07 13:13 
QuestionDateTime Pin
Expert Coming16-Feb-07 12:37
Expert Coming16-Feb-07 12:37 
AnswerRe: DateTime Pin
Guffa16-Feb-07 13:58
Guffa16-Feb-07 13:58 
QuestionRemoving a " from a string Pin
sharpiesharpie16-Feb-07 12:16
sharpiesharpie16-Feb-07 12:16 
AnswerRe: Removing a " from a string Pin
Christian Graus16-Feb-07 12:18
protectorChristian Graus16-Feb-07 12:18 
GeneralRe: Removing a " from a string Pin
sharpiesharpie16-Feb-07 12:45
sharpiesharpie16-Feb-07 12:45 
GeneralRe: Removing a " from a string Pin
Christian Graus18-Feb-07 9:09
protectorChristian Graus18-Feb-07 9:09 
AnswerRe: Removing a &quot; from a string Pin
Guffa16-Feb-07 14:01
Guffa16-Feb-07 14:01 
GeneralRe: Removing a &quot; from a string Pin
sharpiesharpie16-Feb-07 15:46
sharpiesharpie16-Feb-07 15:46 
AnswerRe: Removing a &quot; from a string Pin
Guffa17-Feb-07 14:58
Guffa17-Feb-07 14:58 
AnswerRe: Removing a " from a string Pin
Thomas Stockwell16-Feb-07 16:16
professionalThomas Stockwell16-Feb-07 16:16 
GeneralRe: Removing a " from a string Pin
sharpiesharpie17-Feb-07 1:34
sharpiesharpie17-Feb-07 1:34 

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.