Click here to Skip to main content
15,861,168 members
Home / Discussions / C#
   

C#

 
GeneralRe: Strange problems with WaitForSingleObject Windows function Pin
_Erik_20-Jul-14 21:21
_Erik_20-Jul-14 21:21 
QuestionWeb Service and Cross Mobile Platform Pin
chandu_vrs15-Jul-14 20:58
chandu_vrs15-Jul-14 20:58 
SuggestionRe: Web Service and Cross Mobile Platform Pin
Richard MacCutchan15-Jul-14 22:10
mveRichard MacCutchan15-Jul-14 22:10 
AnswerRe: Web Service and Cross Mobile Platform Pin
Pete O'Hanlon15-Jul-14 22:16
subeditorPete O'Hanlon15-Jul-14 22:16 
GeneralRe: Web Service and Cross Mobile Platform Pin
chandu_vrs15-Jul-14 22:33
chandu_vrs15-Jul-14 22:33 
QuestionHow should i encrypt the data by using SHA1 Algorithm? Please elaborate it? Pin
Member 1094946315-Jul-14 19:57
Member 1094946315-Jul-14 19:57 
AnswerRe: How should i encrypt the data by using SHA1 Algorithm? Please elaborate it? Pin
OriginalGriff15-Jul-14 20:48
mveOriginalGriff15-Jul-14 20:48 
Questionhow to convert a .txt file to return an array? c# Pin
Member 1094881815-Jul-14 10:48
Member 1094881815-Jul-14 10:48 
Hypothetically, how do you complete the code for a static method FileToArray, which reads text files of a special form, where the first line contains the digits of a positive number that we will call n, and there are at least n more lines in the file.

Assume that the string parameter filename refers to an existing text file. FileToArray 1) opens the file, 2) reads n as a string, 3) converts it to an int, and 4) creates a new array of length n. The method then 5) fills the array with n further lines from the file (using a loop, probably a for loop). Finally, the method must 6) close the file and 7) return the array.
For example, if the text file named "fruits.txt" contains these lines:

3
kiwi
mango
pineapple
ignore this

then FileToArray("fruits.txt") returns a new array containing elements {"kiwi", "mango", "pineapple"}, and the file ends up closed. Assume that the file passed to the function has at least one line in it, the number of remaining lines (if the file only has one line in it, that line must contain the number 0).

public static Main()
{
}


public static string[] FileToArray(string filename)
{
}
AnswerRe: how to convert a .txt file to return an array? c# Pin
Mycroft Holmes15-Jul-14 12:59
professionalMycroft Holmes15-Jul-14 12:59 
AnswerRe: how to convert a .txt file to return an array? c# Pin
Mc_Topaz15-Jul-14 14:45
Mc_Topaz15-Jul-14 14:45 
GeneralRe: how to convert a .txt file to return an array? c# Pin
Rob Philpott15-Jul-14 20:35
Rob Philpott15-Jul-14 20:35 
AnswerRe: how to convert a .txt file to return an array? c# Pin
Rob Philpott15-Jul-14 20:28
Rob Philpott15-Jul-14 20:28 
AnswerRe: how to convert a .txt file to return an array? c# Pin
OriginalGriff15-Jul-14 20:49
mveOriginalGriff15-Jul-14 20:49 
QuestionGet csv outputfil from file.msg Pin
Member 1092249815-Jul-14 5:32
Member 1092249815-Jul-14 5:32 
AnswerRe: Get csv outputfil from file.msg Pin
Rob Philpott15-Jul-14 6:07
Rob Philpott15-Jul-14 6:07 
GeneralRe: Get csv outputfil from file.msg Pin
Member 1092249815-Jul-14 12:09
Member 1092249815-Jul-14 12:09 
GeneralRe: Get csv outputfil from file.msg Pin
Rob Philpott15-Jul-14 20:30
Rob Philpott15-Jul-14 20:30 
GeneralRe: Get csv outputfil from file.msg Pin
Member 1092249821-Jul-14 23:04
Member 1092249821-Jul-14 23:04 
QuestionINotifyPropertyChanged binding label problem during update in function Pin
massisoda15-Jul-14 4:42
massisoda15-Jul-14 4:42 
AnswerRe: INotifyPropertyChanged binding label problem during update in function Pin
Pete O'Hanlon15-Jul-14 5:18
subeditorPete O'Hanlon15-Jul-14 5:18 
GeneralRe: INotifyPropertyChanged binding label problem during update in function Pin
massisoda15-Jul-14 5:21
massisoda15-Jul-14 5:21 
GeneralRe: INotifyPropertyChanged binding label problem during update in function Pin
Pete O'Hanlon15-Jul-14 5:24
subeditorPete O'Hanlon15-Jul-14 5:24 
GeneralRe: INotifyPropertyChanged binding label problem during update in function Pin
massisoda16-Jul-14 1:48
massisoda16-Jul-14 1:48 
GeneralRe: INotifyPropertyChanged binding label problem during update in function Pin
Pete O'Hanlon16-Jul-14 1:53
subeditorPete O'Hanlon16-Jul-14 1:53 
GeneralRe: INotifyPropertyChanged binding label problem during update in function Pin
massisoda16-Jul-14 2:00
massisoda16-Jul-14 2:00 

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.