Read specific elements of a file in cpp [closed]
Closed 10 hours ago.
Read specific elements of a file in cpp [closed]
Closed 10 hours ago.
C# reading large file data of leads to memory leak
I have a file having 2500000 lines. each line has this format data : -946.469900574903,2024-07-03 15:56:20.562891
C# first move a file to another location, and then create a file with the same name in the original location again. creation time not right
//Move the file to another location File.Move(@”D:Test.log”, @”D:LogHistory” + DateTime.Now.ToString(“yyyyMMddHHmmssfff”) + “.log”); //Create the file with the same name again in the original location,the time the file was created is not the time the code was executed. StreamWriter _writer = new StreamWriter(@”D:Test.log”, true); _writer.Close(); As shown above, I want to move a log file to […]
cstdiofile “disk full while accessing” file with CFile::modeCreate on existing file (to overwrite it)
I am using MFC and C++. Based on user input, I need to either create a new file or re-create it if it exists. In both cases I get the error message “disk is full”.
ConsoleApp1.csproj failed to load in VS Code
Screenshot of the VS Code file explorer thingy:
ConsoleApp1.csproj failed to load in vscode
screenshot of the vs code file explorer thingy
Reading a file using a variable to store file name
I want the user to be able to input a file name and display the information within the file. I’ve used the ifstream to read the variable but it only returns an error. I implemented the error so that I could know when the program has found the file or not. I don’t know if the variable needs to be wihtin the folder of the program. Tbh i dont know how to modify it for it to work.
find if array is in a file
I need to know if all the characters in the exampleFile array are in a file in sequence.
I tried to solve it but I can’t find the problem and it still doesn’t work.
What’s the problem here?
In what order should I read the data files?
I have 54 data files, each of which is several GB in size.