Click here to Skip to main content
15,890,882 members
Home / Discussions / C#
   

C#

 
AnswerRe: [Message Deleted] PinPopular
#realJSOP4-Dec-08 3:05
mve#realJSOP4-Dec-08 3:05 
GeneralRe: [Message Deleted] Pin
Simon P Stevens4-Dec-08 3:22
Simon P Stevens4-Dec-08 3:22 
GeneralRe: [Message Deleted] Pin
#realJSOP4-Dec-08 3:36
mve#realJSOP4-Dec-08 3:36 
GeneralRe: [Message Deleted] Pin
EliottA4-Dec-08 3:22
EliottA4-Dec-08 3:22 
QuestionRe: [Message Deleted] Pin
led mike4-Dec-08 5:00
led mike4-Dec-08 5:00 
AnswerRe: [Message Deleted] Pin
#realJSOP4-Dec-08 5:14
mve#realJSOP4-Dec-08 5:14 
QuestionRead specific lines from txt file and write them to another file Pin
Inbaljona4-Dec-08 1:38
Inbaljona4-Dec-08 1:38 
AnswerRe: Read specific lines from txt file and write them to another file Pin
Simon P Stevens4-Dec-08 1:48
Simon P Stevens4-Dec-08 1:48 
Rather than only holding the line numbers in the array. Make it a string array*, and store the whole line in the array.

Then, once you've finished processing the initial file. Close it, and open up a stream to your new file. Now you can write each string value from the array into the new file.

(* Even better, Use a generic List<String> instead of an array. This will be strongly typed and automatically resize to hold however many lines you need)

Simon

GeneralRe: Read specific lines from txt file and write them to another file Pin
Inbaljona4-Dec-08 1:57
Inbaljona4-Dec-08 1:57 
GeneralRe: Read specific lines from txt file and write them to another file Pin
Simon P Stevens4-Dec-08 2:02
Simon P Stevens4-Dec-08 2:02 
GeneralRe: Read specific lines from txt file and write them to another file Pin
Inbaljona4-Dec-08 2:07
Inbaljona4-Dec-08 2:07 
GeneralRe: Read specific lines from txt file and write them to another file Pin
Dave Kreskowiak4-Dec-08 2:18
mveDave Kreskowiak4-Dec-08 2:18 
GeneralRe: Read specific lines from txt file and write them to another file Pin
Nissim Salomon4-Dec-08 2:09
Nissim Salomon4-Dec-08 2:09 
GeneralRe: Read specific lines from txt file and write them to another file Pin
Inbaljona4-Dec-08 2:27
Inbaljona4-Dec-08 2:27 
GeneralRe: Read specific lines from txt file and write them to another file Pin
Nissim Salomon4-Dec-08 2:48
Nissim Salomon4-Dec-08 2:48 
GeneralRe: Read specific lines from txt file and write them to another file Pin
User 43300284-Dec-08 4:43
User 43300284-Dec-08 4:43 
Question[Message Deleted] Pin
tonyjsebastian14-Dec-08 1:33
tonyjsebastian14-Dec-08 1:33 
AnswerRe: .net in Linux Pin
J4amieC4-Dec-08 1:38
J4amieC4-Dec-08 1:38 
AnswerRe: .net in Linux PinPopular
Simon P Stevens4-Dec-08 1:40
Simon P Stevens4-Dec-08 1:40 
GeneralRe: .net in Linux Pin
tonyjsebastian14-Dec-08 2:02
tonyjsebastian14-Dec-08 2:02 
GeneralRe: .net in Linux Pin
Simon P Stevens4-Dec-08 2:05
Simon P Stevens4-Dec-08 2:05 
GeneralRe: .net in Linux Pin
tonyjsebastian14-Dec-08 2:13
tonyjsebastian14-Dec-08 2:13 
GeneralRe: .net in Linux Pin
Simon P Stevens4-Dec-08 2:54
Simon P Stevens4-Dec-08 2:54 
GeneralRe: .net in Linux Pin
Dave Kreskowiak4-Dec-08 2:15
mveDave Kreskowiak4-Dec-08 2:15 
GeneralRe: .net in Linux Pin
tonyjsebastian14-Dec-08 2:30
tonyjsebastian14-Dec-08 2:30 

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.