Questions tagged [file-manipulation]
219 questions
-1
votes
3 answers
Notepad++ highlighting anything between two square brackets
I have a document containing a series of strings between hundreds of [] and I want to highlight the strings and copy the information into a spreadsheet.
I have attempted using the Find tool but cannot figure out the regex expression
The final goal…

proteinmodels
- 13
- 5
-1
votes
1 answer
File manipulation (changing lines in a File) in java
I'm trying to read in a file and change some lines.
The instruction reads "invoking java Exercise12_11 John filename removes the string John from the specified file."
Here is the code I've written so far
import java.util.Scanner;
import…

Alex
- 31
- 4
-1
votes
1 answer
Select random person from text file and change corresponding values
I have a form with a button and a label. I also have a text file with the following…

Braden Putt
- 29
- 7
-1
votes
3 answers
php file manipulation functions fails on my localhost saying permission denied
im running on windows xp and i am an administrator, im using the latest xampp bundle available from their site and i receive these kinds of errors when i use file manipulation functions on php...
Warning: chmod() [function.chmod]: Permission denied…

lock
- 6,404
- 18
- 58
- 76
-1
votes
1 answer
0KB PowerPoint file on File Share Server: identify/delete
I'm using Windows 7 with a VPN (Cisco AnyConnect) connection to an academic file share server. I copied a PowerPoint file from a local path to the server, and tried to delete the file on the server after no longer needing it.
It now shows up as a…

T Walker
- 330
- 1
- 3
- 12
-1
votes
1 answer
My php Post values cannot be Transferred to my MySQL Database. Whenever I echo my get the values but cannot insert the values into my Mysql Datab
$department = $_POST['Department'];
$street=$_POST['streetaddress'];
$qualification=$_POST['Qualification'];
$Nmc=$_POST['Nmc'];
$day=$_POST['day'];
$month=$_POST['month'];
$year=$_POST['year'];
$date =…
-1
votes
1 answer
Android systems files , and in particular
I am trying to write a code that lets me programmatically switch a file from one of my resources folders to my assets folder. I have tried the usual file.renameTo method that has worked so very well for me in the past....but with android it seems…

codenamejupiterx
- 1,589
- 9
- 23
- 34
-1
votes
1 answer
Getting my java program to read a file outside the project?
I'm trying to do an assignment where we take data from a csv file and store it in arrays. Although I'm confident in being able to parse the lines and scan them into arrays, I cannot for the life of me figure out how to get the program to connect to…

Claudia
- 1
- 1
-1
votes
2 answers
How to break down such a file in UNIX?
I have a master file containing the content of 3696 files in it. Each file has a repetitive structure: It starts by a line containing the file name in a quotation from, and ends with . There is no other repetitions in the files. Is there any way to…
-1
votes
2 answers
How can i edit specific part of line in a text file in C?
Let's say that I have a .txt file which contains these two lines:
Item="1" Name="Sword" Damage="2.5"
Item="2" Name="Axe" Damage="3"
How can i change the damage of the Axe to 3.5 in the text file with C?
EDITED: this is how i read each line of the…

nightk
- 105
- 12
-1
votes
2 answers
Java - Reading from a file and splitting it into multiple strings
I'm looking to read a .txt file and then split it into multiple strings, but excluding some lines.
Example of a file that I would want to split:
10:
String One
20:
String Two
And so on. I would like all of the numbers and the colon to be ignored…

Kuto
- 21
- 1
- 5
-2
votes
1 answer
C - Read input from text file (int,string,int,int)
First of all sorry for any english error.
So, I have this data in a .txt file
Codigo,Produto,StockMinimo,StockAtual
1,Couro,300,1000
2,Tecido,250,2000
...
I want to skip the first line and read only the integers to a struct
I'm using the bellow…

Luís Oliveira
- 33
- 7
-2
votes
1 answer
json.dump doesn't dump anything, and leaves me with an empty file | Python
I have been trying to dump a dictionary into my JSON file with the json library. However, when I dump, the file doesn't show anything inside it. Furthermore, when I read the file (using open('file').read()), it shows the data there! Can anyone help…

coderman1234
- 210
- 3
- 12
-2
votes
2 answers
What is faster: rewrite file or delete and then create file use java?
Need update the file. I see two ways: first - rewrite file (merge content), second - delete previous file and then create new file with new content. I pass content for all file and its weight around 1 KB. What's the way faster?

Nick
- 117
- 1
- 10
-2
votes
1 answer
index out of range while attempting to write to file
I believe the issue is that the buffer isn't getting flushed but am not certain, p
Error
bash-4.4$ ./golang-updateprops -f chaosmonkey.config
panic: runtime error: index out of range
goroutine 1 [running]:
main.ingest(0x7ffeefbff700, 0x12, 0x0,…

ehime
- 8,025
- 14
- 51
- 110