Top "File" questions

A block of arbitrary information, or resource for storing information, accessible by the string-based name or path.

copy all files and folders from one drive to another drive using DOS (command prompt)

i want to copy all files and folders from one drive to another drive using MS-DOS. How to do it? …

file filesystems backup dos copy-paste
Rename a file using Java

Can we rename a file say test.txt to test1.txt ? If test1.txt exists will it rename ? How do …

java file rename file-rename
How to delete a specific line in a file?

Let's say I have a text file full of nicknames. How can I delete a specific nickname from this file, …

python file input
How to check if a file exists in a folder?

I need to check if an xml file exists in the folder. DirectoryInfo di = new DirectoryInfo(ProcessingDirectory); FileInfo[] TXTFiles = di.…

c# xml file fileinfo
Download a file from NodeJS Server using Express

How can I download a file that is in my server to my machine accessing a page in a nodeJS …

javascript node.js file express download
How to open every file in a folder?

I have a python script parse.py, which in the script open a file, say file1, and then do something …

python file pipe stdout stdin
Convert file: Uri to File in Android

What's the easiest way to convert from a file: android.net.Uri to a File in Android? Tried the following …

android file uri file-uri
When should I use File.separator and when File.pathSeparator?

In the File class there are two strings, separator and pathSeparator. What's the difference? When should I use one over …

java file path-separator
How to export data as CSV format from SQL Server using sqlcmd?

I can quite easily dump data into a text file such as: sqlcmd -S myServer -d myDB -E -Q "select …

sql-server file csv sqlcmd
How to modify a text file?

I'm using Python, and would like to insert a string into a text file without deleting or copying the file. …

python file text