How can I read and sort a text file where the information looks like this:
carlos 5
lucas 20
josue 10
* The file looks like this.
Saved randomly but when I read the precise information that is in the order of those who hav...
I'm doing a job where I have to insert structs in alphabetical order into files, where the structs are political and the files (which together form a linked list) are the parties. I'm having a hard time figuring out how to insert politicians in...
With the code below, I generate a file and write it somewhere, however, instead of writing to disk, I wanted to generate it in memory, how do I do that?
using (var context = new ClassContexto(ClassMaster.conexao()))
{...
I'm trying to read a file ( arquivo.txt ) that is in the same folder as my class, but I run the code an error appears that did not find the file. Could someone check what's wrong? Thanks in advance.
My arquivo.txt :
Industria;2;...
I have a folder where the insert logs are stored in the database. The log files follow this structure:
<item xsi:type="tns:StatusResultReport">
<id xsi:type="xsd:int">1569692</id>...
Good morning, I would like a help, the function is exporting directly to download folder, I would like to be able to choose in which to save the file. I still can not see a solution to this functionality, thank you all who are willing to give me...
The idea is to separate pieces with the split function that does not contain spaces, commas, semicolons, etc.
But the function does not separate correctly, separating most of the time just the space.
public String[] getTokens(String s)
{
S...
I'm trying to copy a file from a server to my machine, simply the code executes, it does not return any errors, but does not copy the file.
Follow the C ++ code:
#include <iostream>
#include <windows.h>
using namespace std;
in...
Hello, I'm doing a program in java where I need to open a file and read it. But when I'm trying to put the file path, it does not find such a file and so I get the Null Pointer Exception error. The code is as follows:
public File[] returnFile...
I'm setting up a website for a school, and I'm adopting a new feature. I created an input file for people to insert images and they, through a preview should appear in the respective pictures below. But it only works with the first frame! does n...