Click here to Skip to main content
15,894,199 members
Home / Discussions / C#
   

C#

 
AnswerRe: Adding rows dynamically in a DataGridView Pin
Salogus7-May-07 18:43
Salogus7-May-07 18:43 
AnswerRe: Adding rows dynamically in a DataGridView Pin
AFSEKI7-May-07 21:30
AFSEKI7-May-07 21:30 
AnswerRe: How to Generate a 16 bit Random number? Pin
Dave Kreskowiak7-May-07 7:09
mveDave Kreskowiak7-May-07 7:09 
QuestionHow to determine exe file size from it's process? Pin
Doan Quynh7-May-07 6:26
Doan Quynh7-May-07 6:26 
AnswerRe: How to determine exe file size from it's process? Pin
Dave Kreskowiak7-May-07 6:44
mveDave Kreskowiak7-May-07 6:44 
GeneralRe: How to determine exe file size from it's process? Pin
Doan Quynh7-May-07 14:55
Doan Quynh7-May-07 14:55 
GeneralRe: How to determine exe file size from it's process? Pin
Dave Kreskowiak7-May-07 17:42
mveDave Kreskowiak7-May-07 17:42 
QuestionHow to place write to memory rather than hard-disk? Pin
Khoramdin7-May-07 4:34
Khoramdin7-May-07 4:34 
Hello everyone,

I am currently using a CSV file to store some data locally on the user's computer. Since these data is only required during the life time of the Windows Application, I was wondering if it is possible to store then in the Menory of the computer in order to speed up the process of dealing with the data contained in the CSV file?

Here is the example of the code I am using:

        // 2. Update the "MyListView.txt" file.<br />
        StreamReader streamReaderOne = new StreamReader("MyListView.txt");<br />
        StreamWriter streamWriterTwo = File.AppendText("MyTemp.txt");<br />
        while ((line = streamReaderOne.ReadLine()) != null)<br />
        {<br />
            split = line.Split(delimiterChars);<br />
            line = split[0] + "," + split[1] + "," + split[2] + "," + split[3] + ",SAVE";<br />
            streamWriterTwo.WriteLine(String.Format("{0}", line));<br />
        }<br />
        streamWriterTwo.Close();<br />
        streamReaderOne.Close();<br />
<br />
        File.Copy("MyTemp.txt", "MyListView.txt", true);<br />
        File.Delete("MyTemp.txt");


khoramdin
AnswerRe: How to place write to memory rather than hard-disk? Pin
Tarakeshwar Reddy7-May-07 5:10
professionalTarakeshwar Reddy7-May-07 5:10 
QuestionRe: How to place write to memory rather than hard-disk? Pin
Khoramdin7-May-07 7:57
Khoramdin7-May-07 7:57 
AnswerRe: How to place write to memory rather than hard-disk? Pin
Tarakeshwar Reddy7-May-07 9:48
professionalTarakeshwar Reddy7-May-07 9:48 
QuestionPrinting GDI Drawing objects Pin
free_soul4247-May-07 4:25
free_soul4247-May-07 4:25 
AnswerRe: Printing GDI Drawing objects Pin
User 24629919-May-07 1:59
professionalUser 24629919-May-07 1:59 
QuestionC# and java Pin
Askalo7-May-07 4:12
Askalo7-May-07 4:12 
AnswerRe: C# and java Pin
Judah Gabriel Himango7-May-07 4:20
sponsorJudah Gabriel Himango7-May-07 4:20 
AnswerRe: C# and java Pin
Luc Pattyn7-May-07 6:42
sitebuilderLuc Pattyn7-May-07 6:42 
NewsRe: C# and java Pin
xuyennk7-May-07 7:59
xuyennk7-May-07 7:59 
AnswerRe: comparing multiples values Pin
szukuro7-May-07 4:13
szukuro7-May-07 4:13 
Questionerer Pin
Paramhans Dubey7-May-07 3:11
professionalParamhans Dubey7-May-07 3:11 
Questioncustom control Pin
D2raghu7-May-07 2:04
D2raghu7-May-07 2:04 
Questioncustom control Pin
D2raghu7-May-07 1:34
D2raghu7-May-07 1:34 
AnswerRe: custom control Pin
Judah Gabriel Himango7-May-07 4:03
sponsorJudah Gabriel Himango7-May-07 4:03 
QuestionPivotTable in C# Pin
phantanagu7-May-07 1:27
phantanagu7-May-07 1:27 
AnswerRe: PivotTable in C# Pin
Seishin#7-May-07 2:44
Seishin#7-May-07 2:44 
QuestionTab Navigation Pin
Geetankit7-May-07 1:08
Geetankit7-May-07 1:08 

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.