Questions tagged as 'archivo'

3
answers

Save text files in vectors

I have the following code #include <stdio.h> #include <string.h> int main() { FILE *fp1; FILE *fp2; int i,j; int bin[7], dec[70]; int c; fp1 = fopen("bin.txt", "r"); //Abrimo el archivo fp2 = fopen("dec.txt","r")...
asked by 03.07.2017 / 17:29
1
answer

I lose 2 records when opening an ofstream C ++

I have a serious problem that I can not solve. I do not understand why, when opening an output file I am losing 2 positions of a record vector that I do not touch anywhere. The problem, I think, I hope you can correct me, is in the module Lis...
asked by 07.08.2018 / 07:57
1
answer

C - Modify a struct from a file

I just started with C and I have no idea the truth. The thing is to make structs and put them in a file and then read and modify them. I have no idea how to modify a struct of the particular file. I hope you can help me, I'm a little bad at this...
asked by 02.04.2018 / 03:00
1
answer

Error initializing a String Array

I am creating a program that lists the contents of a file, the problem that when I initialize my String array I have an error that is not recognized. This is the code: File origen = new File("TEXTO.TXT"); InputStream in = new Fil...
asked by 11.01.2018 / 19:51
1
answer

Read binary files in C (fread Matlab)

In Matlab I have a binary file read like this: fid = fopen('nombrearcihvo', 'r', 'ieee-le') the contents are short floating, or 32 bits (4 bytes) and to read the first element I use the following: fread(fid, 1, 'float32') And throws me...
asked by 06.11.2017 / 18:34
1
answer

Add permission to a .log in the program folder

You can add permissions to a specific file from c #, I mean, I have a desktop application developed with c #, the app works correctly for me, but when the inslog and the .log are left in the program folder (which is in c: / program files / miapp...
asked by 19.09.2017 / 15:46
1
answer

Stacks a file in C

I have thought to pass the data from a stack to a binary file, I have done a few steps but I think they are wrong, I see the last element element introduced, I mean the first one in the stack. Code: typedef struct nodo { int dato; s...
asked by 04.09.2017 / 22:14
1
answer

Open .txt file as bytes in C # [closed]

My class has to open a .txt file which contains some characters in ASCII, when opening it, this file must be stored in a byte [], in order to extract some specific locations from the document and to be able to modify it     
asked by 28.06.2017 / 21:10
2
answers

Upload file to Java server ee

Excellent community! :) I bring you a query. I am trying to make a form with Java that receives a text, a date and a file. The file is uploaded to the server, gets the link from the file, and stores it in a database. First I had done the part...
asked by 17.10.2016 / 19:48
1
answer

Replace string in txt or flat file with PHP

here again requesting your help and I hope you can help me create this instruction. I want to create a php script that reads a flat file and substitutes a string of characters, that string of characters is identified with a regular expression...
asked by 04.12.2018 / 03:22