Skip to main content

Questions tagged [files-and-directories]

Questions on obtaining files and directory structure/information and manipulating the said structure/information, searching/renaming particular files in a directory, etc., in an OS independent manner.

0 votes
0 answers
54 views

I have some code, currently in a notebook, which should produce some output in the same directory as the notebook, for which I am using NotebookDirectory[]. I would ...
Liam Baker's user avatar
0 votes
0 answers
76 views

Could not write some data to the file myNotebook.nb. You should check that file's permissions. What should I do?
Ahamad's user avatar
  • 1
1 vote
2 answers
148 views

I want to use a function which requires two lists as input. Dimension[list1] $(5000)$ Dimension[list2] $(\begin{matrix} 5000 \\...
am567's user avatar
  • 997
0 votes
0 answers
52 views

I have a mystery on my MacOS system with Mathematica (MacOS Sequoia 15.5, Mathematica 14.1.0.0). When I use the Menu item File Open... to open a file, the directory location chosen is a folder I have ...
K7PEH's user avatar
  • 619
1 vote
1 answer
195 views

I tried using home:=SetDirectory[NotebookDirectory[]] SetDirectory[home <> "\\data"] as I do when I'm using desktop version, but I get ...
Recomagnesius's user avatar
1 vote
3 answers
114 views

I can run this with no problem: Import[NotebookDirectory[] <> "a10.mx"]; Instead of that, I want to describe 10 with a variable as ...
merts's user avatar
  • 95
0 votes
0 answers
89 views

I hate the Mathematica File/Directory picker. The worst is that it doesn't allow changing the directory or path by editing it like any normal navigation window would allow (e.g. Ctrl+l in Nautilus). ...
Kvothe's user avatar
  • 4,931
3 votes
1 answer
88 views

I have stumbled upon a very strange interaction of the system variable $InputFileName when using SetDirectory and ...
Michael Haring's user avatar
2 votes
0 answers
89 views

There is StreamPosition gives the position counting from the beginning of the file in bytes. But is it possible know current line number in a stream efficiently for ...
matheorem's user avatar
  • 17.7k
2 votes
1 answer
147 views

The MacOS uses unique numbers (Catalog Node IDs, aka CNIDs) to identify files and directories. Is there any way to obtain (read) CNIDs from within Mathematica?
James Stein's user avatar
2 votes
1 answer
88 views

Sometimes the file path is too long, and it's really inconvenient to open the file by clicking the ">>" button on the right. Is it able to modify the appearance of file object by ...
Acacia's user avatar
  • 3,467
4 votes
1 answer
158 views

At one point in the past I believed that a style sheet colocated with a notebook would not require a path. For example, if my notebook resided in the same directory as this style sheet, the style ...
Steven Thomas Hatton's user avatar
0 votes
1 answer
95 views

I am using Module and reading rawlen.txt files from nb100, nb200 , ... folders. I have written a piece of program to calculate strain and I expect the results to have the following structure: {{0.}, {...
Delaram Nematollahi's user avatar
1 vote
0 answers
171 views

I am using mathematica on the free Wolfram cloud version. I first tried using the option of "Print to PDF" available under the "File" on the top of Nav Bar. However, it redirects ...
CuriousMind's user avatar
4 votes
2 answers
210 views

What is the easiest way to copy one directory into another programmatically? I tried: ...
user13892's user avatar
  • 10.4k

15 30 50 per page
1
2 3 4 5
34