Questions tagged as 'arquivo'

2
answers

Display longblob field contents containing PDF file

I have a question regarding the longblob data that is stored in the Database. I currently have this for the other data: echo "<tr><td>Email:</td>"; echo "<td>"; if ($exibe['Email']) { echo $exibe['Email']...
asked by 14.02.2014 / 11:09
1
answer

Mini Search Engine

I am doing a mini search system for urls that are stored in a .txt file, one per line, my problem is the performance issue because I have 5000 urls stored (only) and it is already slow in the search , on the server side I have: if(isset($_GET[...
asked by 05.08.2016 / 16:12
1
answer

Page Print

Good morning, I wonder if there is any way to count how many times a particular page (html) has been printed. I know we can count the times that a modal was opened with the click of the button, in the same modal I have a button to print (the con...
asked by 28.01.2016 / 11:32
4
answers

View the last 5 lines of a file with PHP?

Through Shell , I can display the last 5 lines of a file using the tail command. So: > tail -n 5 public/index.php I'd like to do the same thing in PHP. But I did not want to load the whole file, but actually only display...
asked by 02.09.2015 / 21:48
2
answers

How to create an index file using tree B +

I have a B + tree that acts as the index of a data file. This index should be saved to an index file. The struct node or node of the B + tree is: typedef struct node { void ** pointers; int * keys; struct node * parent;...
asked by 16.12.2014 / 17:32
1
answer

How to read folder and subfolder files?

I have a function to read the files from the folder, and it is not working. I need a functional function that reads files from folders and subfolders. Here is the code: FolderBrowserDialog fbd = new FolderBrowserDialog(); DialogRes...
asked by 05.09.2014 / 19:31
2
answers

How to read a large line-by-line file with Javascript (nodejs)

I have a very large file to import data into MongoDB via Javascript. The problem is that I can not load the entire file into memory. I would like to read this file line by line, since each line is a record to insert into my bank. I know the f...
asked by 01.01.2015 / 01:16
2
answers

Comparing user-typed variable with file variable

Within my arquivo.txt file I keep two strings "nome" and "senha" , they stay one below the other. I need to get the name and password entered by the user and compare it with the name and password I have saved in the .txt...
asked by 12.11.2015 / 19:57
2
answers

ObjectOutputStream only saves the first object

I'm trying to manipulate a file in Byte with Java. In writing the file I have the following code: FileOutputStream fos = new FileOutputStream("files\Produtos.dat",true); ObjectOutputStream oos = new ObjectOutputStream(fos); oos.writeObject(P);...
asked by 08.02.2014 / 03:30
3
answers

Find files containing string and rename

To find files whose name contains a certain string , we can use find as follows: Sample file:    1429331804.H568641P9577.xxxx.example.com, S = 17846: 2, Command to find by xxxx.example.com : find . -type f -name "*xxx...
asked by 21.04.2015 / 23:21