Click here to Skip to main content
15,915,869 members
Home / Discussions / C#
   

C#

 
AnswerRe: How do I get an app to run on boot? Pin
Michael P Butler6-Jan-04 4:32
Michael P Butler6-Jan-04 4:32 
AnswerRe: How do I get an app to run on boot? Pin
Heath Stewart6-Jan-04 4:35
protectorHeath Stewart6-Jan-04 4:35 
AnswerRe: How do I get an app to run on boot? Pin
cjengler6-Jan-04 5:49
cjengler6-Jan-04 5:49 
AnswerRe: How do I get an app to run on boot? Pin
jparsons6-Jan-04 6:40
jparsons6-Jan-04 6:40 
QuestionPlaying Mp3 file? Pin
thomasa6-Jan-04 3:24
thomasa6-Jan-04 3:24 
AnswerRe: Playing Mp3 file? Pin
Heath Stewart6-Jan-04 4:10
protectorHeath Stewart6-Jan-04 4:10 
GeneralRe: Playing Mp3 file? Pin
thomasa6-Jan-04 4:38
thomasa6-Jan-04 4:38 
Generaldays of week Pin
mnaveed6-Jan-04 1:16
mnaveed6-Jan-04 1:16 
GeneralRe: days of week Pin
Mazdak6-Jan-04 1:39
Mazdak6-Jan-04 1:39 
GeneralRe: days of week Pin
mnaveed6-Jan-04 2:21
mnaveed6-Jan-04 2:21 
GeneralRe: days of week Pin
Mazdak6-Jan-04 2:28
Mazdak6-Jan-04 2:28 
GeneralRe: days of week Pin
Heath Stewart6-Jan-04 2:30
protectorHeath Stewart6-Jan-04 2:30 
GeneralRe: days of week Pin
mnaveed6-Jan-04 3:55
mnaveed6-Jan-04 3:55 
GeneralRe: days of week Pin
Heath Stewart6-Jan-04 5:03
protectorHeath Stewart6-Jan-04 5:03 
GeneralRe: days of week Pin
mnaveed6-Jan-04 5:52
mnaveed6-Jan-04 5:52 
GeneralCreating CSV files Pin
MrEyes6-Jan-04 0:16
MrEyes6-Jan-04 0:16 
This isnt really a question relating to C# but the application that I am working on is written in C# and there isnt really another forum section which is relevant to my question.

Within my application I am taking various values pulled from an MS SQL database and creating a comma delimited CSV file, the problem is that the values in the db have various /n and and /r. In previous versions I have simply stripped this out as if they are present it causes the stream writer to generate incorrect CSV's. The problem is that, as a result of stripping these out, I loose any formatting.

An example is this query :

SELECT val1, val2, val3, val4 FROM table

The code then generates the following CSV file :

val1, val2, val3, val4
abc, def, ghi, jkl

Does anybody know of a way of creating the CSV with the /n and /r included? Double Quoting? Escaping?

post.mode = signature;
SELECT everything FROM everywhere WHERE something = something_else;
> 1 Row Returned
> 42
GeneralRe: Creating CSV files Pin
Heath Stewart6-Jan-04 4:26
protectorHeath Stewart6-Jan-04 4:26 
Generalreading from DB Pin
hadi20sa5-Jan-04 22:37
hadi20sa5-Jan-04 22:37 
GeneralRe: reading from DB Pin
Mazdak6-Jan-04 0:35
Mazdak6-Jan-04 0:35 
GeneralRe: reading from DB Pin
Anonymous6-Jan-04 23:18
Anonymous6-Jan-04 23:18 
Questiongetting intercept point of lines?? Pin
azusakt5-Jan-04 22:25
azusakt5-Jan-04 22:25 
AnswerRe: getting intercept point of lines?? Pin
Xiangyang Liu 刘向阳5-Jan-04 23:51
Xiangyang Liu 刘向阳5-Jan-04 23:51 
Questionhow to change dos prompt caption! Pin
yu-yu5-Jan-04 21:12
yu-yu5-Jan-04 21:12 
AnswerRe: how to change dos prompt caption! Pin
Philip Fitzsimons6-Jan-04 2:54
Philip Fitzsimons6-Jan-04 2:54 
AnswerRe: how to change dos prompt caption! Pin
Heath Stewart6-Jan-04 3:16
protectorHeath Stewart6-Jan-04 3:16 

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.