How to read part of string from .txt file? [closed] - c#

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
Here is my problem, I have to read a certain data from the Text file.
For example: "test1.txt" has some data like
TEST1ZE G P 1 - ‘
= = û ¡ É É
END1= = û TEST2 ¡ É É ‘END2
I have to read data from TEST2 TO END2 in c#
later I have to convert this data in a byte array.

http://msdn.microsoft.com/en-us/library/db5x7c0d.aspx
this may help you, rest is logic in C#. you can find help here:
how to get one part of the string

Related

How to URLDecode in c# .Net, but exclude some characters? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I want to urldecode, except for the %20 character. How do I accomplish this?
Have you considered doing a string replace after decoding? For example
string decoded = HttpServerUtility.UrlDecode(input).Replace(" ", "%20");
use method HttpUtility.HtmlDecode(myEncodedString, myWriter);

store a file in an array word by word [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
i am tring to make a C# code to read from a notepad file, so how to store it in an array word by word or how to make it read and stop at a certain special mark?
for example
read$ from$ file$
and it should be stored in the array as
read
from
file
File.ReadAllLines("file.txt").Split("$")
Use following code.
String[] tokens = File.ReadAllText("file.txt").Split('$');
tokens string array will be having you required string values.
Save as you said. At the time of retrieving Split data with '$'. It will give you array.
string[] strarr = mytxtdata.Split('$');

Need help finding name of function [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
My friend sent me an encoded string which I would assume is Java or C#, but since I code in neither of them I could need some help. The string is as follows:
0x579fb13
I thought about it being base 64 or so at first, but the 0x indicates it's hex or something.
Any help appreciated.
The 0x would indeed normally indicate that it's hex. That looks like a memory location to me, and as such may be (inadvertently) the pointer to the structure containing the encrypted string.

asp.net mvc C# displaying \ [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
how can i display \ by using c# in a textbox .
myTextBox.Text = "\\";
'\' is, as you probably know, an escape character (so "\n" is new line, "\t" is tab, etc). To display a literal "\" you need to double it up.

How to converting BMP to AVI C# [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I want to print screen 24 times in 1 second and then convert to AVI or VMW. İT's like video capture. is that possible ?
Check out the Expression Encoder SDK which allows you to do (live) video capturing from the screen in C#/.Net.

Categories