Questions tagged as 'archivo'

1
answer

How can I make a file with the structure of a stack? [closed]

I have a stack of 3 elements and when closing the program, this program has to write a file emptying the remaining elements of a stack and then read them from the file and add them to the stack in the same way they were inserted. That is, if...
asked by 11.10.2017 / 22:14
1
answer

How can I write to a file with multiple lines in java?

I have a method that generates 10,000 numbers and I store them in an array. I would like these data to be written in a file of 10 lines with 1000 numbers per line. This is what I have tried: try { File f = new File(System.getProp...
asked by 16.10.2017 / 02:13
1
answer

Visual Basic download file https

Using the following code: Try Dim fileToDownload As String = "miArchivo" Dim downloadPath As String = Directory.GetCurrentDirectory() & "\data\downloads\" Dim currDate = DateTime.Now.ToString("dd-MM-yyyy HH.mm.ss").ToString...
asked by 06.08.2017 / 12:50
2
answers

Read file (.txt) C ++

My problem is this: void read () { string name, ciudad; int cont = 0; ifstream read; reader.open ("usuarios.txt", ios::out | ios::in); if (lectura.is_open()) { while (!reader.eo...
asked by 19.04.2017 / 20:40
1
answer

Does not my file save an entire value in C ++?

My program consists in creating a file .dat , with 3 values (name, age and country), read the file and show its contents. The problem I have is that when I open my file, it only saves me the char values. I think the error is in getch...
asked by 20.02.2017 / 16:39
3
answers

How to add file to c ++ program, with classes?

How to connect a text file (not binary), that stores data entered by the user in c ++, in this simple example: #include <iostream> #include <string> #include <conio.h> #include <stdio.h> using namespace std; class pers...
asked by 24.12.2016 / 15:25
1
answer

helps files in C

I need to create a program that writes a file of bytes , with the name that is entered, with a number and ask if that number is Mb or Gb and I already have the following code developed, although I think that is not the best w...
asked by 17.11.2016 / 22:15
3
answers

Problems separating csv file using comma as a separator

I have an application that exports the result in a csv file. I'm using commas as a column separator, but the problem is that in one of the output parameters item.SN the content contains commas to separate the name then the file creates co...
asked by 08.03.2016 / 22:01
0
answers

Read and change line of files in different folders

I will try to explain what I am looking for in a simple and brief way. Taking into account the following folder structure. carpetaPrincipal -> carpeta1 y carperta2 Within carpeta1 and carpeta2 there is a file called t...
asked by 12.12.2018 / 09:11
0
answers

Get .p12 and xml files using javascript from the server

I need to call a javascript function that signs a receipt, but I do not know how to get these files and pass them to this function: var comprobanteFirmado = firmarComprobante(archivo_p12, Clave_p12, xmlDoc); Try to send them by php because...
asked by 11.12.2018 / 17:39