streamreader
read from file and split the information based on a character c#
i am reading information from a text file and i want to go through the text file row by row and in each row i want to split each sentence from the other based on a character(eg. \',\') and i want to s[详细]
2023-04-11 14:14 分类:问答C# add line numbers to a text file
I am trying to read a text file in C# and add line numbers to the lines. This my input file: This is line one[详细]
2023-04-10 15:12 分类:问答Vb.net System.IO.StreamReader Empty path name is not legal
I have a fault with System.IO.StreamReader. Public Class Project Dim merah As Integer Dim File_Directory As OpenFileDialog = New OpenFileDialog()[详细]
2023-04-10 05:57 分类:问答Getting Sum Of Numbers In Each Line Of File
i have a file that there is some numbers that i want to sum number one with number two in each line.here is numbers in my file:[详细]
2023-04-09 11:38 分类:问答Why StreamReader.EndOfStream property change the BaseStream.Position value
I wrote this small program which reads every 5th character from Random.txt In random.txt I have one line of text: ABCDEFGHIJKLMNOPRST. I got the expected result:[详细]
2023-04-09 01:59 分类:问答VCF Vcard import c#
iam trying to write a class which imports *.vcf files (Vcard), because i didn´t found aadequate .net class to solve that job.[详细]
2023-04-08 09:00 分类:问答Should I call Close() or Dispose() for stream objects?
Classes such as Stream, StreamReader, StreamWriter etc implements IDisposable interface. That means, we can call Dispose() method on objects of these classes. They\'ve also defined a public method cal[详细]
2023-04-07 13:17 分类:问答When using stream reader my method is only reading in one line in the file
while (!String.IsNullOrEmpty(tempString = streamReader.ReadLine())) This loop is only iterating once. Any help is appreciated. Full method:[详细]
2023-04-06 20:07 分类:问答Using xpath on a stream
is it pos开发者_高级运维sible to use xpath on a streamed xml file using streamreader (file obtained from the internet) ?[详细]
2023-04-06 03:17 分类:问答C# how to split text file in multi files
How do I split a single text file with 1000 lines into multiple smaller files of, for example, 300 lines apiece? Please keep in mind that the original file may have more or less than a thousand lines.[详细]
2023-04-02 07:46 分类:问答