TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Eduardo
NA
15
18.2k
Read/Write Search/Change text files using a binary method
Mar 30 2010 10:13 AM
Hi guys,
I am using C# Visual Studio .Net 2008.
What I want to do:
- open a file, do search and changes, save changes of the file
But!
The file is a txt file, but the first 4 characters are binary (I don't know if there are more binary characteres). When I save the file, i lost the binary part and the Application that will use this file says that the file is corrupted... :(
I am using StreamReader and StreamWriter to do this but i need another way to open the file using a binary format and make changes like search and replace using text mode and finally save the file using binary mode again.
What i want is just like notepad++ does :D
Any ideas?
Thanks!
†GnR† Slash
Reply
Answers (
1
)
how to decrypt this code
GridView1_SelectedIndexChanging