ifstream
C++ ifstream has odd seg fault depending on where the file is located on disk
I have some C++ code (using ROOT libraries) I\'ve inherited (~1.5k lines) and one of the first things I\'m trying to do is solve a bug having to do with opening and reading a binary file which is pass[详细]
2023-02-12 01:09 分类:问答Read line of numbers using C++
What\'s the standard way of reading a \"line of numbers\" and store those numbers inside a vector. file.in[详细]
2023-02-10 09:21 分类:问答After dragging a file on exe, ifstream fails to open file
I have have the following problem: When I drag and drop a file to my tool (exe) when ifstream fails to open the file.[详细]
2023-02-08 02:33 分类:问答How to convert a string to a ifstream
i am trying to open a file with ifstream and i want to use a string as the path (my program makes a string path). it will compile but it stays blank.[详细]
2023-02-08 00:41 分类:问答Open file relative to executed module
I know, it isn\'t the best idea to open a file constraining it to be placed in the same directory like the execute开发者_高级运维d module. But, there is a tool, I was ordered to program, with exact th[详细]
2023-02-07 17:42 分类:问答Inheriting from ifstream
Can I inherit from ifstream and read the file from my derived class like this: #include <iostream>[详细]
2023-02-06 15:03 分类:问答Open method opens files with full path only C++
File opens if I write the full path (full-path/roots.txt). File fails to open if I write the filename only (roots.txt)[详细]
2023-02-06 12:30 分类:问答istream::getline return type
What does the istream::getline method return? I am asking because I have seen that to loop t开发者_如何学运维hrough a file, it should be done like this:[详细]
2023-02-05 12:11 分类:问答C++: ifstream::getline problem
I am reading a file like this: char string[256]; std::ifstream file( \"file.txt\" ); // open the level file.[详细]
2023-02-05 09:37 分类:问答Using ifstream as fscanf
Assume that I have an input as follows: N (X_1,Y_1) (X_2,Y_2) .... (X_N, Y_N) where N, X_i and Y开发者_高级运维_i are integers.[详细]
2023-02-04 20:38 分类:问答