Quote Originally Posted by memeloo View Post
oh, really? what google did you use? you must have been searching for it in some parallel reality
http://www.google.com/search?hl=en&s...=f&oq=&aqi=g10
and the first result is
http://www.csharp-examples.net/filestream-open-file/
the google search results:

FileStream Open File [C#] - Examples are with text files.

C# Station: Reading and Writing Text Files - Has text files in the title

Working with Files in C# — CodeGuru.com - Examples are text files

File.Open Method (String, FileMode) (System.IO) - more text.

File.Open Method - text

Visual C# .NET - Open File dialogue box - jpeg?


list goes on, any ways, when ever it gets to the point about editing and saving a file its always about saving a string to a text file. I do not need that.

I guess it would be better to start off with txt files, but I cant really think of any kind of program to make that would use that and be of any use to me at all.

I have starting to study on my own, I was in a class and haven't really done anything out side of it. I want to learn more. Here is a little bit of information of what I am trying to do.

I am trying to make a program that allows you to open a file. when the file is opened, it reads data at certain points in the file. And displays information based on the data. Here is an example file in hex.

Code:
   x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 xA xB xC xD xE xF

0x FA 1D 67 53 00 00 2E 91 7C 01 EA 00 AA 76 30 38

1x F2 8F 03 00 DD 1A 00 01 80 00 02 FC 80 00 00 00

2x 00 00 00 00 00 00 00 00 96 01 ED 00 5B 01 69 00

3x 10 18 14 10 03 03 00 03 DF 7C EF 3F 00 00 00 00

4x 02 00 00 00 00 00 9A 00 9A 00 77 00 54 00 53 00

5x 6A 00 FF FF 00 00 00 00 00 00 00 00 00 00 00 07

6x 00 00 00 00 00 00 00 00 B6 00 C6 00 DF 00 D4 00

7x FF FF 00 00 00 00 00 00 00 00 00 09 0A 18 00 00

8x BA 0B 00 0C 23 02 0C 00
as text...

Code:
úgS  .‘|ê ªv08ò Ý € ü€           –* [i  ß|ï?         š š w T S j ÿÿ                   ¶ Æ ß Ô ÿÿ         	
  º #
as you can see complete gibberish and no way usable, and upon saving the file, all values of 0x00 are saved as 0x20.

I need to be able to read the values like, the word at 0x50, or the word at 0x38, and by word, I mean a 4 sets of 1 bit vaules. in the example file, the word at 0x38 is 3FEF7CDF. then based on the data have options set. then the user can edit those options, and the data is changed to show that.