Questions tagged as 'arquivo'

2
answers

File Encoding in ASC II

I'm developing an application in php that generates batch files for the bank and these files have to be with the specifications below:    Coding System - Low Platform       ASC II - including the file should contain record delimiters at the...
asked by 28.03.2018 / 02:26
2
answers

Create files in the Home folder with C ++

In c ++, creating files is very simple, just include the fstream library and use ofstream arquivo; file.open ("variables.txt"); However this generates the file in the project folder and I would like to generate the file in some other fol...
asked by 19.04.2018 / 01:53
1
answer

How to delete an entry from a Python file without having to read the whole file?

I have a file with the following entries: Ana Joao Pedro José .... I need to delete the line with the name Pedro, it would be easy for me to read the whole file, save it in a list, delete Pedro and rewrite the file: nomes = open('nomes.tx...
asked by 04.01.2018 / 14:31
1
answer

How to split a file line without using Substrings in C #?

I have created a file where I save line-by-line data as morada|nome|telefone|nif , meaning each variable stored in the file is divided by | . I remember there being a method of dividing this line into 4 to add to a dataGridView wi...
asked by 27.09.2017 / 10:39
1
answer

File copy error in C language [closed]

Hi! I'm trying to create a copy of a C file, but I'm not able to copy the content, it's just creating a new blank file, can anyone see where I'm going wrong? #include <stdio.h> int main() { char str[100]; FILE *file = fopen("/ho...
asked by 23.11.2014 / 15:37
2
answers

Upload content from another file with jquery

I would like to know how to load the code from another html or php file using the $(".div").load("html.html"); The error here would be: It loads the code perfectly, but I have a button in that HTML, the button appears right but then...
asked by 13.11.2016 / 20:31
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

How to tell if a file was viewed

I'm doing a system in php where the counter sends a file to the client (using database). My question is as follows, how to do when the client accesses this file, be sent to the database the time and date it was opened. I was able to resolve i...
asked by 02.06.2014 / 21:48
1
answer

Read char array from a binary file

Function that writes and reads the binary file: int FUNCAO_QUE_GRAVA_BIN (char filename[],int partida1,char resultado1) { typedef struct { int partida; char jogvelha[3][3]; char resultad...
asked by 27.11.2018 / 12:20
1
answer

Error saving file - Already being used by another process [duplicate]

I want to read the TextBox text (WinForms) and save it to the file. It is giving error, saying that the file is being used in another location. StreamWriter escreverentrada = new StreamWriter(@"escreveentrada.txt",true); string va...
asked by 02.08.2018 / 20:48