Top "File" questions

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

How do I save a String to a text file using Java?

In Java, I have text from a text field in a String variable called "text". How can I save the …

java file file-io text-files
"Cross origin requests are only supported for HTTP." error when loading a local file

I'm trying to load a 3D model into Three.js with JSONLoader, and that 3D model is in the same …

javascript file http three.js cors
Call a function from another file?

Set_up: I have a .py file for each function I need to use in a program. In this program, …

python file function import
How to create an empty file at the command line in Windows?

How to create an empty file at the DOS/Windows command-line? I tried: copy nul > file.txt but it …

windows file cmd command-line
How to read all files in a folder from Java?

How to read all the files in a folder through Java?

java file io directory
How to move a file?

I looked into the Python os interface, but was unable to locate a method to move a file. How would …

python file file-handling
How to get full path of a file?

Is there an easy way I can print the full path of file.txt ? file.txt = /nfs/an/disks/jj/…

linux file unix path
How can I see the size of files and directories in linux?

How can I see the size of files and directories in Linux? If use df -m, then it shows the …

linux file
How can I get the list of files in a directory using C or C++?

How can I determine the list of files in a directory from inside my C or C++ code? I'm not …

c++ c file directory
Remove a symlink to a directory

I have a symlink to an important directory. I want to get rid of that symlink, while keeping the directory …

linux file symlink