Questions tagged [fileparsing]
170 questions
0
votes
1 answer
Is there A Java Function or Library to Insert formatted Text into arbitrary file?
Trying to create a function that will Append content to lines in a file that match a certain regex condition
AccountFile.txt
1 {
2 "account": "123456",
3 "MoreAccounts": { //Some-Comment-1
4 "evenMoreAccounts: {
5 …

chid00
- 53
- 4
0
votes
0 answers
Removing first N characters from a very large file
I have a rather big csv file, which contains a single row, and on the last "column", there is a HUGE json string.
I already found a solution, to parse this JSON string programatically, but my problem is, that I would first need a solution to GET…

Adam Baranyai
- 3,635
- 3
- 29
- 68
0
votes
0 answers
How to parse a csv and use the content in the maven build in Jenkins
I'm new to Jenkins jobs. What I wanted to achieve is to parse the contents of a dynamically created CSV file for the list of names of test cases I want to execute in my maven build statement. The CSV file is available in my workspace under the…

aby
- 810
- 6
- 21
- 36
0
votes
2 answers
File parsing in c, extract specific line if it exists
I have a dynamically updated text file with names of people, I want to parse the file to extract "Caleb" and the string that follows his name. However, his name may not always be in the list and I want to account for that.
I could do it in Java, but…

CISSflow
- 89
- 5
0
votes
1 answer
Parse a markdown file in bash to get all indented lines and their position in the file
I am trying to get all indented lines in a markdown file in bash. I need their position in the file in order to be able to later extract or insert them again at their original position.
Below an example of markdown file for which I want to get all…

eqtèöck
- 971
- 1
- 13
- 27
0
votes
0 answers
Parsing log file using JSON with ASHX
I am using an http handler (.ashx) to handle file uploads. Once a file is selected, "uploadFile()" is called to save it to a temporary location. The file is then read, parsed and stored in a (C#) data table to be used to populate a jQuery data…

NoBullMan
- 2,032
- 5
- 40
- 93
0
votes
0 answers
Python format issue with sending and receiving a file
I am sending a JSON file from the cloud to a device using Azure IoT cloud-to-device messages via the Python SDKs.
The file contains lots of new lines and tabs which I would like to preserve. The file received of course must be in the exact same…

Engineer999
- 3,683
- 6
- 33
- 71
0
votes
1 answer
fgets returning null - file parsing
I'm trying to get a program to parse a text file line by line for some data storage (I've tried binary file storage, but having mixed data types in the file seems to mess things up).
I'm trying to save a number of entries contained in hist[], which…

remi delamare
- 1
- 2
0
votes
1 answer
How to parse INI-like (or XML-like)files but with closing section tag?
I need to pase a text file in this format:
[section A begin]
some lines
more lines
[section 1 begin]
some lines
[section i begin]
some lines
[section i end]
more lines
[section 1 end]
more lines
[section A end]
[section B end]
...
[section B…

chance
- 6,307
- 13
- 46
- 70
0
votes
1 answer
Powershell: Error while adding custom object to a list. Program runs without error in debug mode
Trying to parse a text file using PowerShell and create a list of sections present in the file.
While executing the below code snippet, error is thrown when the object is added to the list.
Method invocation failed because…

Madhur Sharma
- 3
- 3
0
votes
3 answers
CSV data multiple level parsing Shell script
Hi I have a CSV data in following format
ColumnHeader1,ColumnHeader2,ColumnHeader3
valcol1p1,name=testapp1 environment=dev coldata=My_Test_Logs @$ 192.168.1.1 @$ r1 @$ r2 @$ POST API ,valcol3p1
valcol1p1,name=testapp2 environment=qa…

pythonNinja
- 453
- 5
- 13
0
votes
1 answer
How to use FileHelper library to get number of delimiters
Using the FileHelper Library Is there a way to get an exception if the record does not have expected number of delimiters in a line?
And another question is there is there a way to get an exception if a particular field for example Name is more…

Beenish Qasmi
- 13
- 2
0
votes
1 answer
Fastest way to parse a TXT line by line
I'm trying to parse a large TXT-File line by line (6mio. Lines, 200MB) using if statements with the String.contains(String) method. At the moment it is very slow is there a method to improve the speed.
I know there's also String.firstIndexOf but…

user2531284
- 184
- 1
- 13
0
votes
1 answer
Understanding and parsing FABMaster ASCII transfer format (.fatf) file
How can I parse a .fatf or .asc (FABMaster ASCII transfer format).
Does any documentation exist for the file structure?

Hory
- 9
- 1
0
votes
2 answers
Cannot properly count elements in CSV after strtok in C
I only sometimes see a proper count of the number of elements after I use strtok to delimit by commas and quotation marks (double quotes). Usually the printf is length 0, but occasionally 6 and 1 with no change to the code.
I have tried only using…

rc341
- 23
- 3