![]() This way, you'll only hold a fraction of the file at each time: using (System.IO.StreamWriter writer = new System.IO. To avoid holding all in memory, you should stream the data, converting and writing each chunk. For example, say I had the text file 'helloworld. ![]() I want to take in a file and view its hexadecimal values. Your problem is that you load the whole file into memory, convert each byte to three characters (that's the file size times 6), going through Replace and ToCharArray. I had a question: I am writing a c program that functions much like a hex editor. elf file (generated when you compile C/C++ code in the IDE, usually located in Temp folder).
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |