Questions tagged as 'archivo'

0
answers

Test the existence of a file dynamically in javascript

I have a web page that launches a background script. Meanwhile there is a page that is shown with certain information. And I want that when the script has finished it shows me another information on that page. When I launch the script I creat...
asked by 03.09.2018 / 11:09
1
answer

fwrite does not write to file C

I have a problem with a program that I am writing. What I intend is to open a file written in binary with account data, this includes a header with information of the data it contains. What I'm doing is reading that file and the data writing...
asked by 11.06.2017 / 02:14
2
answers

How to read a text file in a Fragment Android Studio

Good afternoon community, I wanted to ask the question, it turns out that I try to read a text file from a fragment but when I open it in the application I jump that the application stopped working, so I wanted to know if they could give me a ha...
asked by 10.01.2018 / 17:42
1
answer

Go adding lines to a '.txt' and then print them - Android Studio

I have three Activitys, the main one: public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main);...
asked by 10.07.2018 / 01:59
1
answer

copy files to another folder with php

I have this function $srcfile='C:\xampp\htdocs\imagenes\*.*'; $dstfile='C:\xampp\htdocs\imagenes-copiadas\*.*'; mkdir(dirname($dstfile), 0777, true); copy($srcfile, $dstfile); when I run the php I need to copy all the files in the direct...
asked by 24.05.2018 / 14:09
4
answers

How to correctly read a file ignoring certain words in Java?

How can I read this .txt file, ignoring the words: Id book: Title: Editorial: List of authors: and ignore the entire line: "------- Text:". Reference image: I used this code to read the author's code and it works ver...
asked by 24.03.2018 / 02:05
1
answer

Error with Scanner when ordering an integer nextInt () and then a String nextLine ()

I'm asking for a string to insert into a file, if the file does not exist I think so and if it exists I rewrite it, it seems simple but for some reason it does not ask me to speak, the instruction is skipped. I do not understand anything because...
asked by 13.05.2018 / 12:09
2
answers

How to read a line in a specific file in C ++?

I made an agenda where I saved data in a text file. When you find the name of a contact, I want you to read all of your information. But I have no idea how to read just one line. I appreciate any help, thanks. (Code in codeblocks) #include...
asked by 07.11.2016 / 15:00
1
answer

Problem with fgetc

I have a problem and that is that fgetc does not really read what is in the file. I have the following code: int* readData(char* problem, int size) { FILE *f; //Obtenemos el fichero con el problema if ((f = fopen(problem, "r+")) =...
asked by 21.02.2018 / 19:51
1
answer

Count line breaks in a file.txt with Python

I am doing a lexical analyzer for a class and one of the things that it must accomplish is to count the line breaks. How can I count the line breaks in Python from a text file? This is my code, am I using regular expressions? **def newLine(lin...
asked by 12.12.2018 / 08:41