Questions tagged as 'fstream'

2
answers

How can I use std :: basic_filebuf from fstream to write to a file in c ++

I have been looking for both English and Spanish, and I do not get information that I understand about it; I try to do the following: #include "stdafx.h" #include <fstream> #include <iostream> using namespace std; int main() {...
asked by 17.04.2018 / 04:46
1
answer

fstream c ++ error

I have this piece of code, void saveGame(vector<Usuario *> vector) { fstream file_obj; file_obj.open("users.dat"); for(Usuario *u: vector){ string auxName,auxPassword; auxName = u->getName(); auxPa...
asked by 13.05.2018 / 00:28
1
answer

How to read the video file that I have saved in my mongodb database

I'm trying to save a collection inside mongodb (Lesson) where among other data this collection has a video: Lesson Model 'use strict' var mongoose = require('mongoose'); var Schema = mongoose.Schema; var LessonSchema = Schema({ tit...
asked by 26.11.2018 / 21:20
1
answer

Access several files in a folder with fstream

I am carrying out a program which asks me to go through several files that are in a specific folder (they are like 500 files). I have already managed to read a file using fstream , but I would like to see if there is any way to access the...
asked by 16.01.2018 / 03:45