Questions tagged as 'arquivo'

1
answer

Get file stored in Bin in MySQL

Live! I'm having trouble getting my PDF file that was stored in a MySQL DB. Whenever I download it, I can not open it because it returns the message that may be corrupted. So I store: $docs = new Documentos(); $assunto = filter_input(IN...
asked by 08.05.2015 / 11:15
1
answer

How to list directory in a listview?

I need to list a specific sdcard directory, in a custom listview. See how it works, the list contains a button and a title: Adapter public class AdapterListView extends BaseAdapter { private LayoutInflater mInflater; private Arra...
asked by 26.01.2015 / 19:00
2
answers

Can Class.getResource () only be able to recover files in internal folders that the class is in?

In this class, I need to read *.properties files that are in another folder / project package. The folder structure is this:    util → properties (here are the .properties)       util → server → queries (here is the class that will re...
asked by 05.12.2014 / 18:52
1
answer

Opening and reading giant files in C

How can I open a file for C language reading, over 100 MB? With this code placed below, I can read a file with more than 18,000 lines, but what I really need is to read a file with approximately 5,000,000 lines. Is this possible in C? ch...
asked by 14.12.2014 / 18:10
2
answers

How to read and open files from a byte column in SQL Server?

My question is the continuation of this question: Link to another question I was able to transform my file into bytes and insert it inside a table in SQL Server, however now I want from within an application that I'm doing in C # I want to...
asked by 09.12.2014 / 14:03
1
answer

Output does not appear in program C [duplicate]

     This question already has an answer here:                   variation while with scanf                                      3 replies                                                 Why do not need the '&' no 'scanf ();'?...
asked by 16.11.2018 / 15:45
2
answers

Error trying to submit form with AJAX file

I have the following code that I deployed before testing in my project: index.php <form method="post" id="formulario" enctype="multipart/form-data"> <input name="nome" type="text"/> <input name="img" type="file"/> &l...
asked by 08.04.2016 / 20:07
2
answers

Problem reading txt file with PHP - fgets does not take the next line

Is everything good? I have a problem with reading a specific txt file. As you can see below my code uses fgets to read line by line. <?php extrairDadosNotificacao("arquivo1.txt"); extrairDadosNotificacao("arquivo2.txt"); function extrairDa...
asked by 21.11.2016 / 21:31
1
answer

Find the largest number in a text file

I'm trying to make a program that reads a text file and tell me the largest number in it. Here's what I already have from the code: while (sLine != null) { sLine = objReader.ReadLine(); if (sLine != null) arrText.Add(sLine);...
asked by 03.07.2018 / 15:17
3
answers

Write in files without deleting your content

How can I write to a file without deleting what's inside it? I'm using the classes below. public void criarArquivos() throws IOException{ /*1 forma*/ FileWriter arqTeste = new FileWriter("teste.txt"); PrintWriter gravaTeste = new...
asked by 24.11.2016 / 14:54