Questions tagged as 'arquivo'

1
answer

Error passing script from a Firebird database table to PostgreSQL

I'm trying to pass a script to create and insert data from a Firebird database to PostgreSQL, however in some tables syntax error is occurring, I'm using the SQL Manager Interbase & Firebird to generate the * .sql files from my Firebird data...
asked by 07.12.2016 / 16:51
1
answer

fread and structure memory allocation

I have the following structure: typedef struct registro {//52 bytes char codigo[4]; char descricao[31]; char unidade[3]; int quantidade; float valor; char status; }registro; It should store the values of a dados...
asked by 31.10.2016 / 01:37
1
answer

Know when a file line starts with a given string

I have a file like this: # Blender v2.69 (sub 0) OBJ File: 'CUBO.blend' # www.blender.org mtllib cube.mtl o Cube.022_Cube.030 v 0.450000 -1.450000 0.550000 v 0.450000 -1.450000 1.450000 v -0.450000 -1.450000 1.450000 v -0.449999 -1.450000 0.55...
asked by 09.11.2016 / 16:06
1
answer

Read text file picking float numbers and playing in array

I have a text file for example with: v 1.000000 -1.000000 -1.000000 v 1.000000 -1.000000 1.000000 v -1.000000 -1.000000 1.000000 v -1.000000 -1.000000 -1.000000 v 1.000000 1.000000 -0.999999 v 0.999999 1.000000 1.000001 v -1.000000 1.000000 1....
asked by 09.11.2016 / 04:23
1
answer

Discover partition [closed]

I'm creating an application that will run from an external hard drive. I've been researching but I have not found a way without using a lot of gambiarra to find the partition where that HD was mounted. My goal is to have a File object that ha...
asked by 24.11.2016 / 20:48
1
answer

Problems with binary search tree in C

Now repositioning my post more clearly (this is a continuation of my previous question ). In the code, I try to create a binary search tree and insert elements into it. They should be saved in .txt file. As soon as I run it it says that .exe ha...
asked by 10.07.2016 / 19:13
1
answer

Problems in an array of strings in a structure

I'm having a problem about an array of strings that I'm trying to access from a structure. The structure is set to header.h which has the following format: typedef struct { char *produtos[200000]; int contador; } Produtos,*ProdutosP;...
asked by 12.03.2016 / 17:02
1
answer

Iterate in multiple text files

Good afternoon. I have the following purpose: I have a series of text files and I want to create a script to iterate over all of them and count how many times certain strings appear in them. I was able to script for a single file. But I'm hav...
asked by 16.03.2016 / 19:33
1
answer

Error in file code. W

I need to do a simple search engine. Just open arquivo.txt , search for a word desired by the user, check how many times a word appears in the file and whether it exists in the file. But this is giving an error that I did not identify the...
asked by 18.02.2016 / 02:07
1
answer

Error writing binary file using fwrite

Why this code snippet DataRootDir data = rootdir[i]; fwrite (data, sizeof(DataRootDir), 1, arq); always returns error error: cannot convert 'DataRootDir' to 'const void*' for argument '1' to 'size_t fwrite(const void*, size_t, size_t, FIL...
asked by 19.02.2016 / 19:53