Skip to main content
-1 votes
1 answer
163 views

I have a button on my form that has a text box that is supposed to have some written text. Here is the code: // Saves the text in blahwnd to a file called something.txt FILE* clickfile; fopen_s(&...
codean49's user avatar
1 vote
1 answer
118 views

I am trying to store several columns of the data, and then merge them with the other data when necessary. However, the data could only be merged with other data when I created it at the start, and it ...
ChuDingjin's user avatar
4 votes
2 answers
132 views

My problem is that I have a string which is colored gray, the string is almost 1000 characters long. 2 of them must be in another color (red), but I don’t know how to change the color in the string. ...
Simon Rogl's user avatar
1 vote
1 answer
189 views

I'm working with a program that produces text lines with tab-separated numbers as output, about 1 line every 2 minutes, each line having at most 51 characters (including the tabs). I piped its stdout ...
user2934303's user avatar
1 vote
2 answers
105 views

using fileno() to get the actual file descriptor of stdout. using fdopen() to create two different FILE* structure, named a and b. creating two threads, name A and B, using fwrite() to write some ...
benrush's user avatar
  • 373
0 votes
2 answers
116 views

I'm making a concurrent file downloader, which downloads in segment files and merges them afterwards. I want to improve it by pre-creating a big file with the whole size, then each thread will seek ...
Pairman's user avatar
  • 44
0 votes
1 answer
105 views

I have a simple watchdog mechanism made as follow: A kernel module which holds a list of thread counters in a /proc file. The module increments each counter every second. When a counter reaches its ...
bui3's user avatar
  • 152
0 votes
1 answer
144 views

I have this code: #set working directory setwd(dirname(rstudioapi::getSourceEditorContext()$path)) dt = data.table( Product = c("a","b", "c", "d", "e"...
Oliver Humphreys's user avatar
0 votes
1 answer
345 views

In Visual Studio 2022, I am getting the following warning when I call fwrite. Warning image C6387 It says: C6387:'fout' could be '0': this does not adhere to the specification for the function 'fwrite'...
lussco's user avatar
  • 23
1 vote
0 answers
124 views

Here's what I have so far: package main import ( "os" "github.com/saferwall/pe" ) func main(){ exePath, _:= os.Executable() peFile, _:= pe.New(exePath, &pe.Options{}) ...
Ethan Leonard's user avatar
0 votes
0 answers
33 views

When the device was testing power off and on, it was found that the content of a json file was missing. The function to operate it is as follows: /* 将json写入文件 */ FILE *pf = fopen(file_path,&...
work aaron's user avatar
3 votes
0 answers
113 views

I'm saving a large data.table object as a compressed file using data.table::fwrite(data, 'data.csv.gz'). However, when I try to extract this file using Ubuntu file manager, I get an "empty ...
Daniel's user avatar
  • 630
0 votes
1 answer
44 views

I have a function that create a file using the function fwrite. I've noticed that after the file is created, if I open the file using the online file manager of my host, I can see an extra dot inside ...
cactusman's user avatar
0 votes
1 answer
113 views

I'm trying to figure out how to write to the console in UTF-16 mode directly (without wprintf) as part of a solution to another problem and wanted to do this directly in C first. Here is an example of ...
ThatOneShortGuy's user avatar
1 vote
1 answer
105 views

I am trying to make a program that stores the name, employee number and salary of employees in a database, where I have to then store the amount of employees along with all the information of each ...
DeePyson's user avatar

15 30 50 per page
1
2 3 4 5
119