Questions tagged as 'archivo'

2
answers

Obtain project directory from any PC

I want to open a txt file contained in my project from any PC. I have a problem when opening a txt file that is in the resources folder of my project. The point is that I can open the file if I specify the path of it from my hard drive, but i...
asked by 03.11.2018 / 23:52
1
answer

fread and fwrite with double pointers in c

I'm trying to write an array of structures to a binary file but when I call the function fwrite does not save anything in the file. Edit: I add the page definition typedef struct Pagina Pagina; struct Pagina { char *Instrucción; char *r...
asked by 26.06.2018 / 06:54
1
answer

How can I know if a txt file exists from PLSQL

I have the following problem, I am creating a Trigger in Oracle so that I write information in a txt file, up to here everything is fine, I can write without dramas, the problem is when I need to add information to the file, apart from the one t...
asked by 27.05.2018 / 00:26
1
answer

fwrite does not write to file

I have this hex_editor.exe program in c that reads from a text file with this format: 065_066_067_097_098_099_013_010_049_050_051 052_053_054_013_010_065_114_114_111_122_032 121_032_108_101_099_104_101_013_010_100_111 013_010_013_010_119_104_1...
asked by 28.03.2018 / 18:15
1
answer

PHP How to get the name of a variable file?

I am trying to import an excel book in PHP but the name of this file is changed every day. $nombreArchivo="/Carpeta/archivovariable.xlsx" Is there any code to add in the path such as "%%" or "*" so that the file is imported without importin...
asked by 30.01.2018 / 23:40
2
answers

Reading text files in Textbox

I am looking forward to working on my applications with simple text files. Something very simple, place a button and a TextBox . The TextBox will show the content of the .txt and the button will give the instruction to load it....
asked by 18.12.2017 / 23:50
2
answers

Download file from mysql server

Good companions, I have a problem in my code and I can not fix it ... I'm trying to upload files and download them with php, the problem is that when I give it to download it leaves the page blank and does not download anything .. this is...
asked by 19.04.2017 / 21:52
1
answer

Problems with C File

Good afternoon! I have the following code in C: #include <stdio.h> #include <stdlib.h> #define tamString 100 void cargarArchivo(FILE * archivo, char phrase[tamString]); int main() { FILE *archi; archi = fo...
asked by 27.05.2016 / 21:31
1
answer

I want to do a reading speed test in console (C #)

I'm doing a program / game in C # which is basically a 6-speed reading speed test and I want to show something similar to this in console: link The problem is that it does not show even a single word of the contents of the text file....
asked by 05.12.2018 / 02:46
1
answer

Specifying a path to load a .txt with javascript

I want to put the text of a .txt in a variable. I found the following code: var client = new XMLHttpRequest(); client.open('GET', '/foo.txt'); client.onreadystatechange = function() { alert(client.responseText); } client.send(); Now I am...
asked by 22.10.2018 / 14:02