Linked Questions
14 questions linked to/from Can I hex edit a file in Visual Studio?
87
votes
4
answers
174k
views
How do I see a bin file in a hex editor in Visual Studio Code?
I have a bin file holding all my instruction cache and data cache for my Verilog project, and I want to see it as the Notepad++ hex editor shows its meaning, hex representation view. Is there a way to ...
1
vote
1
answer
2k
views
Is there a way I can see '\0' (null character) in Visual Studio's text editor?
I am making my own file format. It looks like so:
<GameObjects>
{
<GameObject>
{
<int id> 0
<std::string name> GameObject0
<Transform>
...
0
votes
1
answer
1k
views
Chinese characters show up on txt file after fwrite
I want to write data in structure to a text file. But it ends up showing strange characters in the text file. I have changed many forms of fwrite arguments but none works. Please someone help me. ...
0
votes
1
answer
495
views
Why do I get a corrupted *.gz file after creating it with C#?
I’m developing a .NET 5, C# console application to create a CSV file from a list of custom objects, gzip it, and upload it to an Azure Storage container with this code:
var blobServiceClient = new ...
0
votes
1
answer
686
views
How to properly put CSV data into custom class records in C#?
I want to put a data from simple csv file into the records containing custom made class.
Here is my code:
using System;
using CsvHelper;
using System.IO; // for accessing the files
using System....
-2
votes
1
answer
451
views
Using fstream::getline in VS2019 Is Giving Me Different Results Than Using It With VSCode
So I've been learning about steams and have been experimenting on my own. I was attempting to write a simple program to read the first line of a file only.
But I've noticed an issue in Visual Studio ...
0
votes
2
answers
192
views
Reading last line of a file In C
I am trying to think of logic on how to read the last line of a file but I cannot come up with answers. ACCOUNTNUM info is a structure. my .dat file who has 3 acc numbers already. Here I want to know ...
2
votes
0
answers
390
views
How to programmatically do a "screen recording" of an AVI file
I have an AVI file(s) with a date time banner incrementing by the second as the video plays.
The time banner is put on the AVI by a proprietary codec; its not in the files metadata, nor is there ...
3
votes
1
answer
334
views
Are non-ASCII char handled differently by GCC and MSVC or is it undefined behaviour
Being in a non English speaking country I wanted to do a test with char array and non ASCII character.
I compiled this code with MSVC and Mingwin GCC :
#include <iostream>
int main()
{
...
1
vote
1
answer
194
views
program in C which reads data of sound and checks if the given data fulfills the prerequisites of a wav file
The demand of the project is to write a program in C which reads data of sound only with getchar from the input according to wav format/template.
The program must check if the given data is correct. ...
1
vote
2
answers
221
views
Finding a specific value in a file
I am trying to make a simple program to find some values in a file. These files are .arkprofile files and belong to the game ARK.
These .arkprofile files include some readable text as well as some ...
1
vote
0
answers
194
views
Visual Studio Hexadecimal Display Uppercase
I work directly with binaries files, doing a lot of reverse engineering and inserting security patches to bypass some things.
Anyways this means I'm constantly starring at hexadecimal, and I have my ...
0
votes
2
answers
119
views
How do I check if my code responds correctly to a backspace character?
I'm learning c from K&R's book, and I wanted to work on this task:
My code, which is here:
#include <stdio.h>
int main()
{
int c;
while ((c = getchar()) != EOF) {
if (c == ...
-1
votes
1
answer
88
views
How to count lines including the ending new lines?
I have been searching online for a long time and there is no correct answer as far as I can find. Now the most common answer looks like below:
int main() {
int number_of_lines = 0;
std::...