file-manipulation
Keeping log files under a certain size
I have an application that is running on a stand-alone panel PC in a kiosk (C#/WPF). It performs some typical logging operations to a text file. The PC has some limited amount of disk space to store t[详细]
2023-02-05 20:23 分类:问答Basic PHP file manipulation
Apologizes for such basic question, but I\'ve gone mad debuggind the following code: $fname = \'results.txt\';[详细]
2023-02-05 09:25 分类:问答Any reason why an std::ofstream object won't close properly?
I noticed in my C++ code that anytime I close an std::ofstream object I\'m unable to reopen the file I closed with std::ifstream. std::ifstream\'s open function will always fail.[详细]
2023-01-22 11:51 分类:问答python to uncomment the right line
I开发者_运维问答 have a file as follows: line 1: _____ ... # for AAA #export CONFIG = AAA_defconfig[详细]
2023-01-21 07:41 分类:问答read, edit & save config files (php)
I have two configuration files. One is ini one is php. They look like below. I need to update the database file name but the rest of the files must be unchanged. Any idea how to do so?[详细]
2023-01-06 03:14 分类:问答In-memory XML manipulation
I\'m trying to do a find and replace in an OpenXML word document which I\'ve openened into a MemoryStream.[详细]
2023-01-04 09:45 分类:问答Text Manipulation Split Classes in a Single File into mulitple Files
I used XSD.EXE to to generate a C# files from an XSD schema. Unfortunately, this tool extracts all the classes into a single allClasses.cs file.[详细]
2022-12-27 16:41 分类:问答Python newbie: trying to create a script that opens a file and replaces words
im trying to create a script that opens a file and replace every \'hola\' with \'hello\'. f=open(\"kk.txt\",\"w\")[详细]
2022-12-25 21:46 分类:问答Bash: how to process variables from an input file?
I\'ve got a bash script that reads input from a file like this: while IFS=\"|\" read -r a b do echo \"$a something $b somethingelse\"[详细]
2022-12-23 20:02 分类:问答Java File manipulation
So I have an application with a JFileChooser from which I select a file to read. Then I change some words and write a new file. The problem that I 开发者_运维问答am having is that when I write the new[详细]
2022-12-22 20:46 分类:问答