Click here to Skip to main content
15,905,028 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to connect My Sql Database to compare string from database. Pin
Stanciu Vlad31-Mar-07 21:31
Stanciu Vlad31-Mar-07 21:31 
GeneralRe: How to connect My Sql Database to compare string from database. Pin
krajah1031-Mar-07 22:26
krajah1031-Mar-07 22:26 
Questionhow to access methods of Window Service Pin
Sanjib Raj31-Mar-07 19:21
Sanjib Raj31-Mar-07 19:21 
AnswerRe: how to access methods of Window Service Pin
Nader Elshehabi31-Mar-07 22:14
Nader Elshehabi31-Mar-07 22:14 
QuestionTables Pin
Shin-Ra31-Mar-07 10:40
Shin-Ra31-Mar-07 10:40 
QuestionSaving from one txt file into another one problem? Pin
Khoramdin31-Mar-07 8:55
Khoramdin31-Mar-07 8:55 
AnswerRe: Saving from one txt file into another one problem? Pin
darkcalin31-Mar-07 10:04
darkcalin31-Mar-07 10:04 
AnswerRe: Saving from one txt file into another one problem? Pin
Wayne Phipps31-Mar-07 10:25
Wayne Phipps31-Mar-07 10:25 
I don't quite understand the problem/question.

As I understand the situation:
You save data in a temporary file which is deleted when the application exits.
There is another permanent file where the data in the temporary file is written/moved as long at the data doesn't already exist in the permanent file.

This would require your code to perform the following:
Read a record from the temporary file.
Read the contents of the permanent file searching for a matching record.
If no record is found in the permanent file, append the permantent file with the new record.

Depending on the size of the files and number of records, you may be able to read both files into memory when making comparisons and after any additions, simply write out a new permanent file from the records in memory.



Regards

Wayne Phipps
____________

Time is the greatest teacher... unfortunately, it kills all of its students
View my Blog

AnswerRe: Saving from one txt file into another one problem? Pin
Nader Elshehabi31-Mar-07 22:07
Nader Elshehabi31-Mar-07 22:07 
QuestionThe Form freeze ive tryed using threads but... nothing Pin
crazy friend31-Mar-07 8:07
crazy friend31-Mar-07 8:07 
AnswerRe: The Form freeze ive tryed using threads but... nothing Pin
Stanciu Vlad31-Mar-07 21:35
Stanciu Vlad31-Mar-07 21:35 
GeneralRe: The Form freeze ive tryed using threads but... nothing Pin
crazy friend1-Apr-07 19:14
crazy friend1-Apr-07 19:14 
GeneralRe: The Form freeze ive tryed using threads but... nothing Pin
HexaDeveloper2-Apr-07 12:30
HexaDeveloper2-Apr-07 12:30 
GeneralRe: The Form freeze ive tryed using threads but... nothing Pin
Stanciu Vlad3-Apr-07 3:33
Stanciu Vlad3-Apr-07 3:33 
GeneralRe: The Form freeze ive tryed using threads but... nothing Pin
crazy friend6-Apr-07 17:21
crazy friend6-Apr-07 17:21 
GeneralRe: The Form freeze ive tryed using threads but... nothing Pin
Stanciu Vlad6-Apr-07 23:22
Stanciu Vlad6-Apr-07 23:22 
Questionsteganography implemented in c sharp Pin
dhananjaysonar31-Mar-07 3:56
dhananjaysonar31-Mar-07 3:56 
AnswerRe: steganography implemented in c sharp Pin
Vasudevan Deepak Kumar31-Mar-07 4:25
Vasudevan Deepak Kumar31-Mar-07 4:25 
GeneralRe: steganography implemented in c sharp Pin
dhananjaysonar31-Mar-07 4:45
dhananjaysonar31-Mar-07 4:45 
GeneralRe: steganography implemented in c sharp Pin
Vega0231-Mar-07 6:29
Vega0231-Mar-07 6:29 
GeneralRe: steganography implemented in c sharp Pin
Colin Angus Mackay31-Mar-07 7:17
Colin Angus Mackay31-Mar-07 7:17 
AnswerRe: steganography implemented in c sharp Pin
Stefan Troschuetz31-Mar-07 5:49
Stefan Troschuetz31-Mar-07 5:49 
Questioninvoking a function with string[] Pin
ceken31-Mar-07 3:30
ceken31-Mar-07 3:30 
AnswerRe: invoking a function with string[] Pin
Leslie Sanford31-Mar-07 6:03
Leslie Sanford31-Mar-07 6:03 
GeneralRe: invoking a function with string[] Pin
ceken1-Apr-07 9:46
ceken1-Apr-07 9: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.