Click here to Skip to main content
16,012,166 members
Home / Discussions / C#
   

C#

 
AnswerRe: Read and Write a file at the same time? Pin
PIEBALDconsult23-Nov-09 5:02
mvePIEBALDconsult23-Nov-09 5:02 
GeneralRe: Read and Write a file at the same time? Pin
Tony496623-Nov-09 5:24
Tony496623-Nov-09 5:24 
GeneralRe: Read and Write a file at the same time? Pin
Ghydo23-Nov-09 6:57
Ghydo23-Nov-09 6:57 
GeneralRe: Read and Write a file at the same time? Pin
dojohansen23-Nov-09 8:02
dojohansen23-Nov-09 8:02 
GeneralRe: Read and Write a file at the same time? [modified] Pin
abiemann23-Nov-09 12:36
abiemann23-Nov-09 12:36 
GeneralRe: Read and Write a file at the same time? Pin
dojohansen23-Nov-09 23:50
dojohansen23-Nov-09 23:50 
AnswerRe: Read and Write a file at the same time? PinPopular
Alan N23-Nov-09 6:57
Alan N23-Nov-09 6:57 
GeneralRe: Read and Write a file at the same time? Pin
Tony496624-Nov-09 3:53
Tony496624-Nov-09 3:53 
Thanks so much for so many excellent replies. I appreicate all of them

I finally 'have to' give up this 'bad' design because I can get it working but it's very messy and probably not worthwhile spending too much time on it.

Just a quick note; I get writer part working like this, which is enssentially the same as suggested.

string path = @"C:\Documents and Settings\";
            
string filename = "testernew1.txt";
         
var fi = File.Open(path + filename, FileMode.OpenOrCreate, FileAccess.Write, FileShare.ReadWrite);
var sw = new StreamWriter(fi);
for (int j = 10; j < 0; j--)
  sw.Write(j);
sw.Flush();
fi.Flush();
sw.Close();
fi.Close();


Apparently, the reader part is very simliar.

I am not familiar with message queque so I am going to look into it; also someone told me that it also be done by using remote charting which I assume is more complicated than message quque?
Anyway, it would be great if someone can show some examples of either using message queue or remote charting.

Thanks again for all the replies!
AnswerRe: Read and Write a file at the same time? Pin
Luc Pattyn23-Nov-09 14:04
sitebuilderLuc Pattyn23-Nov-09 14:04 
GeneralRe: Read and Write a file at the same time? Pin
Paulo Zemek24-Nov-09 1:30
Paulo Zemek24-Nov-09 1:30 
QuestionComponents: create runtime/designtime bindable property, possible? Pin
Wendell.S23-Nov-09 3:55
Wendell.S23-Nov-09 3:55 
AnswerRe: Components: create runtime/designtime bindable property, possible? Pin
The Man from U.N.C.L.E.23-Nov-09 6:45
The Man from U.N.C.L.E.23-Nov-09 6:45 
GeneralRe: Components: create runtime/designtime bindable property, possible? Pin
Wendell.S23-Nov-09 7:27
Wendell.S23-Nov-09 7:27 
GeneralRe: Components: create runtime/designtime bindable property, possible? Pin
dojohansen23-Nov-09 8:05
dojohansen23-Nov-09 8:05 
GeneralRe: Components: create runtime/designtime bindable property, possible? Pin
Wendell.S23-Nov-09 8:56
Wendell.S23-Nov-09 8:56 
GeneralRe: Components: create runtime/designtime bindable property, possible? Pin
dojohansen23-Nov-09 9:14
dojohansen23-Nov-09 9:14 
GeneralRe: Components: create runtime/designtime bindable property, possible? Pin
Wendell.S23-Nov-09 17:11
Wendell.S23-Nov-09 17:11 
GeneralRe: Components: create runtime/designtime bindable property, possible? Pin
Gerry Schmitz23-Nov-09 22:30
mveGerry Schmitz23-Nov-09 22:30 
GeneralRe: Components: create runtime/designtime bindable property, possible? Pin
Wendell.S23-Nov-09 23:52
Wendell.S23-Nov-09 23:52 
GeneralRe: Components: create runtime/designtime bindable property, possible? Pin
dojohansen24-Nov-09 0:14
dojohansen24-Nov-09 0:14 
GeneralRe: Components: create runtime/designtime bindable property, possible? Pin
Gerry Schmitz24-Nov-09 4:07
mveGerry Schmitz24-Nov-09 4:07 
QuestionUngroup shape in word file in c# Pin
Pankaj Saha23-Nov-09 2:24
Pankaj Saha23-Nov-09 2:24 
AnswerRe: Ungroup shape in word file in c# Pin
Pankaj Saha23-Nov-09 3:42
Pankaj Saha23-Nov-09 3:42 
GeneralRe: Ungroup shape in word file in c# Pin
Abhishek Sur23-Nov-09 3:48
professionalAbhishek Sur23-Nov-09 3:48 
GeneralRe: Ungroup shape in word file in c# Pin
Pankaj Saha23-Nov-09 17:46
Pankaj Saha23-Nov-09 17:46 

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.