Click here to Skip to main content
15,914,594 members
Home / Discussions / C#
   

C#

 
AnswerRe: DataGridView and List Pin
kubben26-Jul-07 1:39
kubben26-Jul-07 1:39 
QuestiontableAdapters and transactions Pin
JoZ CaVaLLo26-Jul-07 0:11
JoZ CaVaLLo26-Jul-07 0:11 
QuestionWindows application developped using C#.Net with .Net 2005 Pin
indian14326-Jul-07 0:09
indian14326-Jul-07 0:09 
QuestionDouble characters in regexp Pin
Markus Pylvnen26-Jul-07 0:08
Markus Pylvnen26-Jul-07 0:08 
AnswerRe: Double characters in regexp Pin
Tormod Fjeldskaar26-Jul-07 3:06
Tormod Fjeldskaar26-Jul-07 3:06 
GeneralRe: Double characters in regexp Pin
Markus Pylvnen26-Jul-07 19:18
Markus Pylvnen26-Jul-07 19:18 
AnswerRe: Double characters in regexp Pin
snorkie26-Jul-07 3:11
professionalsnorkie26-Jul-07 3:11 
QuestionSaving data to Disk ... Pin
Jalpesh B. Patel26-Jul-07 0:07
Jalpesh B. Patel26-Jul-07 0:07 
Hi,

I would like to know if there is any method in .NET that can gurantee that when I use it the data will be saved to disk.

e.g.
for(int i = 0; i < 5000; i++)
{
StreamWriter myStream = new StreamWriter("test.txt");
myStream.WriteLine(i);
myStream.Close();
}

This does not provide that guarantee, if power is cut during the saving of no. 2500, so many numbers will be missing and only blank lines are inserted in the file.

Even using the .Flush() method does not provide this feature.

I found one method that calls a function from Kernel32.dll using [DllImport], but that makes the i/o operation too slow, and that too without a perfect guarantee.

Please help.
AnswerRe: Saving data to Disk ... Pin
Pete O'Hanlon26-Jul-07 0:31
mvePete O'Hanlon26-Jul-07 0:31 
QuestionSynchronizing Data between SQL Express editions running on a network Pin
wasife25-Jul-07 23:43
wasife25-Jul-07 23:43 
QuestionSqlCommand timeout Pin
Stoyan Furnadzhiev25-Jul-07 23:36
Stoyan Furnadzhiev25-Jul-07 23:36 
AnswerRe: SqlCommand timeout Pin
Blue_Boy25-Jul-07 23:46
Blue_Boy25-Jul-07 23:46 
AnswerRe: SqlCommand timeout Pin
kubben26-Jul-07 1:43
kubben26-Jul-07 1:43 
GeneralRe: SqlCommand timeout Pin
Stoyan Furnadzhiev26-Jul-07 2:12
Stoyan Furnadzhiev26-Jul-07 2:12 
QuestionExpiring app Pin
sujithkumarsl25-Jul-07 23:29
sujithkumarsl25-Jul-07 23:29 
AnswerRe: Expiring app Pin
N a v a n e e t h26-Jul-07 0:11
N a v a n e e t h26-Jul-07 0:11 
AnswerRe: Expiring app Pin
Tormod Fjeldskaar26-Jul-07 3:25
Tormod Fjeldskaar26-Jul-07 3:25 
Question.net 1.0 configuration for VS 2005 Pin
mercenary0125-Jul-07 23:20
mercenary0125-Jul-07 23:20 
AnswerRe: .net 1.0 configuration for VS 2005 Pin
Pete O'Hanlon26-Jul-07 0:28
mvePete O'Hanlon26-Jul-07 0:28 
GeneralRe: .net 1.0 configuration for VS 2005 Pin
mercenary0126-Jul-07 16:54
mercenary0126-Jul-07 16:54 
QuestionCreating collection classes and adding to property of control Pin
N a v a n e e t h25-Jul-07 22:57
N a v a n e e t h25-Jul-07 22:57 
AnswerRe: Creating collection classes and adding to property of control Pin
Urs Enzler25-Jul-07 23:10
Urs Enzler25-Jul-07 23:10 
GeneralRe: Creating collection classes and adding to property of control Pin
N a v a n e e t h25-Jul-07 23:26
N a v a n e e t h25-Jul-07 23:26 
QuestionHow can i solve this format exception Pin
xver25-Jul-07 22:52
xver25-Jul-07 22:52 
AnswerRe: How can i solve this format exception [modified] Pin
Martin#25-Jul-07 23:01
Martin#25-Jul-07 23:01 

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.