Questions tagged as 'arquivo'

2
answers

Python - get data from .txt file with regex

Hello, I'm trying to make a program but I'm not able to remove the data from the .txt file, it would look more or less bold. PokerStars Hand #135235596385: Tournament #1228747530, $0.23+$0.02 USD Hold'em No Limit - Level I (10/20) - 2015/05/14...
asked by 22.05.2015 / 20:02
3
answers

PHP as per the path and name of a file in variables

Hello. I have a table that should show the name of the files and the date they were updated, but nothing appears. In HTML I only have <table><?php tabela("/arquivos/formularios/*.*"); ?></table> And in PHP: function tab...
asked by 08.08.2014 / 20:38
1
answer

Start reading txt from a specific line in Python [duplicate]

I have some txt files that follow a pattern:    link   Thieves get caught after sending selfies with stolen iPad to iCloud victim    There are several types of meliantes Those you have never heard [...] That is:    original link...
asked by 20.12.2018 / 21:07
2
answers

Saving a Dictionary in a Python File

I have a function that tells how many times the words appear: def countWordExact(dataClean): count = {} dataFreq = [] for word in dataClean.split(" "): if word in count: count[word] += 1 else:...
asked by 11.12.2018 / 01:28
1
answer

Using the getline () function in C with MinGW

I've created a code for a bookstore library using Linux / GNU, and it works fine there. However, I need the code compile in Windows using GCC, and I was wondering if there is a method to use this function or if there is a simple way to override...
asked by 18.11.2018 / 01:28
1
answer

Save Json dictionary in txt

How can I save one. dictionary json from a requests in txt. I tried to do this way more did not work. import requests import json url = requests. get("https://search.ams.usda.gov/farmersmarkets/v1/data.svc/zipSearch?zip=46201") response = jso...
asked by 08.11.2018 / 03:57
1
answer

Create new directory according to string

I have a function that saves an image to a standard directory for all companies, and I tried to change it to save to a directory according to this companyFolder string I created. But this is not getting saved. How can I do this? [Htt...
asked by 18.12.2018 / 12:19
1
answer

Dynamic input layout for gallery upload

Hello, I'm creating a resource where the mechanism should: choose an image in the input When changing the input, a new one is created via js next Getting there, I need help, because the function only executes on first input, and stop...
asked by 31.07.2018 / 22:02
1
answer

How to delete a file (not txt) in C?

I'm creating a program that puts each student's grades in a different file. The user puts the code of the student and this code turns the name of a file that is not txt (I do not know how does it do txt). But I'm not able to delete this file. Fo...
asked by 22.07.2018 / 23:28
1
answer

How to make Tyscript read a JSON file that is on disk?

I have a TypeScript (NodeJS-10.6.0) code and need to create a variable that will retrieve the contents of a JSON file. I've tried to import the contents of the file in the following ways: 1. import { orderPayload } = require('../../events/...
asked by 14.08.2018 / 15:17