Questions tagged [fileupdate]

29 questions
81
votes
5 answers

Git show files that were changed in the last 2 days

How can I have a list with all the files that were changed in the last 2 days? I know about git log --name-status --since="2 days ago" but this will show me ids, dates and commit messages. All I need is the list of the file names which were…
dole doug
  • 34,070
  • 20
  • 68
  • 87
5
votes
1 answer

GitHub API File Update : "Not Found"

I am attempting to update a file in one of my repos via the API. Here is my get of that file (works nicely): curl -XGET 'https://git.fake.local/api/v3/repos/jsmith/repo_version/contents/version.html?ref=gh-pages' { "name": "version.html", …
mconlin
  • 8,169
  • 5
  • 31
  • 37
2
votes
3 answers

Search and Replace a content in a file in JAVA

I have to edit the contents of a file and write the edited conted to another file.Here is the code iam using . import java.io.*; import java.util.*; public class TestRef { ArrayList lines = new ArrayList(); …
divz
  • 7,847
  • 23
  • 55
  • 78
2
votes
1 answer

How to detect if a SCSS file or any of it partial files is updated

I want to run sass from within Ruby script. Compiling a scss file scss can be done by doing: require "sass" Sass::Engine.new(File.read(scss), options).render with some appropriate hash assigned to options, but I want to compile it only if scss or…
sawa
  • 165,429
  • 45
  • 277
  • 381
2
votes
1 answer

Java: read a file when it is updated

I wrote a code to read a file and update a database with is contents. I'm using timer task to do this process every 15 minutes. But I want to do this at the exact time when the file is updated/changed. Not every 15 minutes. I took a look for this…
Arda Oğul Üçpınar
  • 881
  • 1
  • 14
  • 38
1
vote
2 answers

How to update a specific line in a file in python?

I am trying to create a program which can update a file. I created a test program as I cannot figure out how to update a part of the file. I want to make it so that if a name matches that of one in the file, it will delete the one name and its data…
rockboiler
  • 13
  • 2
1
vote
4 answers

Edit & save dictionary in another python file

I have 2 python files, file1.py has only 1 dictionary and I would like to read & write to that dictionary from file2.py. Both files are in same directory. I'm able to read from it using import file1 but how do I write to that file. Snippet: file1.py…
keyur
  • 77
  • 1
  • 6
1
vote
0 answers

Java Code to Update icl (x937) file

I am working to write java code to update an ICL (x937 format) check 21 file. This is the file having details and images of cash letters (cheque) My requirement is to take an existing file. Edit some values and create a new file. I have written…
user4559147
1
vote
1 answer

Appending to a workbook using poi sxssfworkbook

I need to append rows to a sheet of a workbook. I am using org.apache.poi.xssf.streaming.SXSSFWorkbook but I am not able to achieve a low memory footprint. Following is the code: import java.io.BufferedInputStream; import…
archit
  • 69
  • 1
  • 2
  • 9
1
vote
1 answer

Always download file again when open a file in NetBeans IDE 6.8

I'm using NetBeans IDE 6.8. When I open a file, NetBeans opens an old file from my computer, not the actual one from the web-server. The problem is when some one else has edited the file on the web-server I need to download the file before I open…
Johan
  • 18,814
  • 30
  • 70
  • 88
1
vote
1 answer

Updating web.config with an MSBUILD task

I'm using an Web Deployment project to do a few post build tasks on a website I'm deploying. I want to use a FileUpdate task to update my web.config and change the compilation mode from debug="true" to debug="false". So, from this
Greg B
  • 14,597
  • 18
  • 87
  • 141
1
vote
2 answers

How can i Update a File in Java, which class Should i use?

my program has the following code, BufferedWriter bufWriter = new BufferedWriter(new FileWriter(new File("xyz.dat"),true)); bufWriter.write(nameField+"/"+ageField+"/"+genderField+"\n"); …
cyberpirate92
  • 3,076
  • 4
  • 28
  • 46
1
vote
1 answer

Getting rid of an empty line when adding new lines to a file (in Perl)

I have files with daily stocks prices saved in text files when each line of the file represents one day data. For example: 20/05/2013 23.46 23.58 23.43 23.57 32884800 23.57 17/05/2013 23.27 23.48 23.2 23.46 41037700 23.46 I…
Eugene S
  • 6,709
  • 8
  • 57
  • 91
0
votes
1 answer

Page does not change after file update/upload

I really need help on this one. I am working on a site and made some changes on some lines, but after I uploaded it there were no changes happening. I have cleared my cache, even did ccleaner and a restart. Open the file again via ftp and the code…
0
votes
2 answers

I try to update image with ajax in laravel but only details are update image is not update. How can i solve this?

Hi every one, I am using laravel 8, and i want to update data using model, now i am facing little problem. The Problem is only details are update but file or image did not updated, i give every thing in bellow, Blade Code: THis is my…
1
2