Does not append ".txt" when saving an FFT as text

This section is now closed.
Forum rules
Audacity 1.3.x is now obsolete. Please use the current Audacity 2.1.x version.

The final version of Audacity for Windows 98/ME is the legacy 2.0.0 version.
Locked
peterj45
Posts: 3
Joined: Tue Feb 07, 2012 4:08 pm
Operating System: Please select

Does not append ".txt" when saving an FFT as text

Post by peterj45 » Tue Feb 07, 2012 4:13 pm

When I try and save an FFT spectrum as a .txt file the software does not append the ".txt" to the file and I have to go in subsequently and modify the file name to add the suffix/file type. Am I doing something wrong or is this a system glitch?

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Does not append ".txt" when saving an FFT as text

Post by steve » Tue Feb 07, 2012 4:38 pm

I think that you have just run into one of the "oddities" of cross-platform programs.

Actually, the "oddity" is that Windows does not recognise file types unless they have a file extension. Other operating systems are able to recognise plain text files whether they have a ".txt" file extension or not (by looking at the contents of the file).

What should happen (and please say if this is not happening) is that when you select:
"Analyze menu > Plot Spectrum > Export"
The "Name:" field should be already filled in with "spectrum.txt"
If you then select a directory (folder) and click the "Save" button, a file called "spectrum.txt" should be created in the specified directory.

If you overwrite the "Name:" with your own text, then the file will be saved with exactly the name that you enter. ".txt" will not be automatically appended to the name. This is intentional so as to allow the files to be written with any file extension that the user chooses, or with no file extension at all.

Does this answer your question?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

peterj45
Posts: 3
Joined: Tue Feb 07, 2012 4:08 pm
Operating System: Please select

Re: Does not append ".txt" when saving an FFT as text

Post by peterj45 » Tue Feb 07, 2012 7:55 pm

steve wrote:What should happen (and please say if this is not happening) is that when you select:
"Analyze menu > Plot Spectrum > Export"
The "Name:" field should be already filled in with "spectrum.txt"
If you then select a directory (folder) and click the "Save" button, a file called "spectrum.txt" should be created in the specified directory.
Thanks for the prompt response but I checked once again and the name field contains only the word "spectrum" to identify the file name. The .txt suffix is not present even though the file type box just below is selected to ".txt"

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Does not append ".txt" when saving an FFT as text

Post by steve » Tue Feb 07, 2012 8:42 pm

Thanks for getting back.
I'm not able to reproduce the problem, but I'm not on Windows so it may be different.

So that I can get this checked out and submit a bug report, could you:
1) look in "Help > About Audacity" and give me the full version number. (it'll be something like "Audacity ® 2.0.0-alpha-Feb 6 2012 (Unicode)")
2) say which version of Window you are using?

Thanks
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

PGA
Posts: 695
Joined: Thu Jan 19, 2012 9:16 pm
Operating System: Please select

Re: Does not append ".txt" when saving an FFT as text

Post by PGA » Tue Feb 07, 2012 9:45 pm

@steve,

I confirm the reported behaviour on my Win 7 system.

peterj45
Posts: 3
Joined: Tue Feb 07, 2012 4:08 pm
Operating System: Please select

Re: Does not append ".txt" when saving an FFT as text

Post by peterj45 » Tue Feb 07, 2012 9:56 pm

I am using Audacity 1.3.14 Beta Unicode and running on Windows 7 SP2

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Does not append ".txt" when saving an FFT as text

Post by Gale Andrews » Wed Feb 08, 2012 1:14 am

Thanks for the report. This is known about already:
http://bugzilla.audacityteam.org/show_bug.cgi?id=387 .

I have not tested, but I suspect Windows Vista and earlier (but not Windows 7) have the same issue with other text files such as labels.txt and tags.xml (saving a template in Metadata Editor).


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

Locked