Click here to Skip to main content
15,561,011 members
Home / Discussions / C#
   

C#

 
GeneralRe: Strange problems with WaitForSingleObject Windows function Pin
_Erik_20-Jul-14 22:21
_Erik_20-Jul-14 22:21 
QuestionWeb Service and Cross Mobile Platform Pin
chandu_vrs15-Jul-14 21:58
chandu_vrs15-Jul-14 21:58 
SuggestionRe: Web Service and Cross Mobile Platform Pin
Richard MacCutchan15-Jul-14 23:10
mveRichard MacCutchan15-Jul-14 23:10 
AnswerRe: Web Service and Cross Mobile Platform Pin
Pete O'Hanlon15-Jul-14 23:16
mvaPete O'Hanlon15-Jul-14 23:16 
GeneralRe: Web Service and Cross Mobile Platform Pin
chandu_vrs15-Jul-14 23:33
chandu_vrs15-Jul-14 23:33 
QuestionHow should i encrypt the data by using SHA1 Algorithm? Please elaborate it? Pin
Member 1094946315-Jul-14 20:57
Member 1094946315-Jul-14 20:57 
AnswerRe: How should i encrypt the data by using SHA1 Algorithm? Please elaborate it? Pin
OriginalGriff15-Jul-14 21:48
mveOriginalGriff15-Jul-14 21:48 
Questionhow to convert a .txt file to return an array? c# Pin
Member 1094881815-Jul-14 11:48
Member 1094881815-Jul-14 11: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 13:59
professionalMycroft Holmes15-Jul-14 13:59 
AnswerRe: how to convert a .txt file to return an array? c# Pin
Mc_Topaz15-Jul-14 15:45
Mc_Topaz15-Jul-14 15:45 
GeneralRe: how to convert a .txt file to return an array? c# Pin
Rob Philpott15-Jul-14 21:35
Rob Philpott15-Jul-14 21:35 
AnswerRe: how to convert a .txt file to return an array? c# Pin
Rob Philpott15-Jul-14 21:28
Rob Philpott15-Jul-14 21:28 
AnswerRe: how to convert a .txt file to return an array? c# Pin
OriginalGriff15-Jul-14 21:49
mveOriginalGriff15-Jul-14 21:49 
QuestionGet csv outputfil from file.msg Pin
Member 1092249815-Jul-14 6:32
Member 1092249815-Jul-14 6:32 
AnswerRe: Get csv outputfil from file.msg Pin
Rob Philpott15-Jul-14 7:07
Rob Philpott15-Jul-14 7:07 
GeneralRe: Get csv outputfil from file.msg Pin
Member 1092249815-Jul-14 13:09
Member 1092249815-Jul-14 13:09 
GeneralRe: Get csv outputfil from file.msg Pin
Rob Philpott15-Jul-14 21:30
Rob Philpott15-Jul-14 21:30 
GeneralRe: Get csv outputfil from file.msg Pin
Member 1092249822-Jul-14 0:04
Member 1092249822-Jul-14 0:04 
QuestionINotifyPropertyChanged binding label problem during update in function Pin
massisoda15-Jul-14 5:42
massisoda15-Jul-14 5:42 
AnswerRe: INotifyPropertyChanged binding label problem during update in function Pin
Pete O'Hanlon15-Jul-14 6:18
mvaPete O'Hanlon15-Jul-14 6:18 
GeneralRe: INotifyPropertyChanged binding label problem during update in function Pin
massisoda15-Jul-14 6:21
massisoda15-Jul-14 6:21 
GeneralRe: INotifyPropertyChanged binding label problem during update in function Pin
Pete O'Hanlon15-Jul-14 6:24
mvaPete O'Hanlon15-Jul-14 6:24 
GeneralRe: INotifyPropertyChanged binding label problem during update in function Pin
massisoda16-Jul-14 2:48
massisoda16-Jul-14 2:48 
GeneralRe: INotifyPropertyChanged binding label problem during update in function Pin
Pete O'Hanlon16-Jul-14 2:53
mvaPete O'Hanlon16-Jul-14 2:53 
GeneralRe: INotifyPropertyChanged binding label problem during update in function Pin
massisoda16-Jul-14 3:00
massisoda16-Jul-14 3: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.