Questions tagged as 'arquivo'

6
answers

How to read a text file in Java?

I have the file named dados.txt and I want to put it in String . For example: String texto = lerArquivo("conteudo.txt"); Question How to write this method lerArquivo() ?     
asked by 10.01.2014 / 02:55
3
answers

Joining PHP files into one only increases performance?

I have the impression that every time I run the dump-autoload command to generate autoload of classes via composer , a bootstrap/compiled.php file is created. Inside it, there seems to be a tangle of classes and namespaces...
asked by 14.07.2015 / 18:20
4
answers

How to check if an image exists on a remote URL?

In order to be able to administer a website from a server other than the one on which the website is hosted, the problem of dealing with remote images has arisen. Common problems: Verify that the image actually exists before creating link...
asked by 10.01.2014 / 00:17
4
answers

How to extract the extension of a file in Javascript?

There are some cases where I need to capture the extension of a file (that is, a string with file address) to be able to validate the extension via Javascript. For example, location : var path = window.location.pathname; // /foo/bar.h...
asked by 28.02.2014 / 22:20
2
answers

How to check if a file is in use without throwing C #

I have an application that processes a file queue. I need to open the files for reading and writing. Sometimes the files are in use when I process them. How can I check if the file is in use? Today I deal more or less like this. I cr...
asked by 14.02.2014 / 18:08
1
answer

How to read binary file content in Javascript

How to read binary file content in Javascript?     
asked by 15.05.2015 / 19:50
2
answers

What is the best way to read an XLS file?

I would like to know the best way to read an XLS file in C #. Can I treat it the same way I treat a table in the database?     
asked by 12.05.2014 / 19:44
2
answers

Read the entire contents of a text file

I need to read the entire contents of a text file and put it in a string . Generally, I do this: using(var reader = new StreamReader("arquivo.txt")) { var strBuilder = new StringBuilder(); while (objReader.ReadLine() != null)...
asked by 15.10.2015 / 19:22
3
answers

Writing and reading file via JavaScript

Is it possible (if so how) to do the following method with JavaScript? The person types in a form some arguments, When you click send it will execute a JavaScript code, In this code the function will get the form information and will ope...
asked by 03.03.2014 / 23:18
3
answers

How to check if a file exists using Python

How to check if a file exists, in Python, without using a block try: ?     
asked by 29.01.2014 / 18:37