Questions tagged as 'archivo'

1
answer

how to read a structured file with java

I am trying to read a file with the following structure: a{a,a,a,a,a,a,a,a,a,a,a,a},b{a,a,a,,a,a,a,a,a,a,a},c[c,c,c,c,c,,,,c,c,c,c] I tried to do it with regular expressions and with split but nothing I could not achieve. Can someone help m...
asked by 17.12.2017 / 19:07
1
answer

How to open pdf with the default pdf reader?

I am new to android programming. I already implemented that my app generates a pdf document, and it creates everything well. The problem, I want to send a Snackbar with the action to open it in another app (pdf reader) all right up there, the qu...
asked by 07.11.2017 / 19:41
1
answer

Convert a text file into a list

I am trying to convert a text file into a list, using Python. The text file are many words, one below the other. What I did was this: stop_words=open('stopwords.txt.txt','r') lineas = [linea.split() for linea in stop_words] for linea in...
asked by 21.11.2017 / 03:01
2
answers

Android Studio - Problem when playing audio

Good morning. I'm doing a simple test where I press a button and a sound plays. When emulating the application (or using it in the mobile) and clicking the button, the app is peta and closes. I think the problem is that it does not find the audi...
asked by 04.10.2017 / 12:59
1
answer

fopen does not work and SIGSEGV sends me in debug and another error in normal compilation

Basically I want to make a program that "divides" the routes in which the file is that I am specifying, that I already achieve, however I also want to access this file with everything and the route so I use fopen and place as variable the string...
asked by 28.05.2017 / 10:34
1
answer

Copy a worksheet from one excel file to another

Hello, good morning, I have the following code. from openpyxl import load_workbook from openpyxl import Workbook wP =load_workbook(r'C:\Users\Arrontec\Desktop\Automatizacion\Request1_2.xlsx') wB =load_workbook(r'C:\Users\Arrontec\Desktop\Auto...
asked by 27.02.2017 / 16:42
1
answer

Deactivate / Activate AVG antivirus protection through BAT file

As the title says, I want to know how I could disable the AVG Antivirus through some lines of BAT commands. The problem comes from that I have several programs that if they are turned on with the active AVG, they do not work. If I turn off befor...
asked by 28.06.2016 / 19:00
1
answer

I can not use the p: fileUpload .. when I put it in a page xhtml it stops working all the elements contained in the block form

I have a problem when entering the data to a form, when I enter dates and text there is no problem, uploads without problems to the database, but when you put the label: <p:fileUpload mode="simple" value="#{formularioController.cargar}" /...
asked by 27.11.2018 / 22:02
3
answers

error in can not convert from string to System.IO.Stream

Create a series of methods in a class to read and write text files, and in one of the methods I get an error: public static void CreateAllText(string path, string contenidos, Encoding encoding) { if (!File.Exists(path)) {...
asked by 06.12.2018 / 22:17
1
answer

how can I save all the data from a DataGridView in a txt file in C #

I already try to do it but it only saves me the first line (that of the titles) and I need to start saving from the second line to the bottom. this is my code: private void btnguardar_Click(object sender, EventArgs e) { StreamWriter esc...
asked by 09.06.2018 / 10:48