Leafpad wipes content of text files on smb when saving

( 3.19.3-3-ARCH x86_64 +  Mate desktop )
Here is the problem:
Today I used leafpad (0.8.18.1-4) to put some short text on another computer on LAN (smb shares) on existing text file.
I saved text and exit. But when that text is opened again (with leafpad or any text editor), there is no text at all! Leafpad wiped it out on saving.
Editing text files on my own computer works ok.
Then I installed mousepad, and it (mousepad) works ok with creating or editing text files over LAN computers.
I also have Arch Linux + xfce on virtualbox, last updated 10/2014, so I checked if it have something with update.
Leafpad there worked (regarding network shared text files) ok.
When I updated that system today - leafpad starts to misbehave just like on my (real) computer.
I'm now using mousepad, but I'm curious what is going on.

OK, i did it, here.

Similar Messages

  • How to save the RichTextBox Content in Text file

    hI ,
    I NEED TO SAVE THE RichTextBox Content in text file ? 

    If this IS a LabVIEW question, here's an example of how to load a rich text file (to help if you don't know how to get a rich text in LabVIEW).
    If you have a Rich Text Box, you can use the invoke method "SaveFile" to match the function you linked to.

  • Passing contents of text file in oracle cursor

    Hi,
    I need to pass the content of text file in cursor and pass it on to calling codes. then calling codes will generate another text at their end. Can some help how can I pass contents of text file in oracle cursor? Thanks

    i need to do it without tables for some reasons.

  • Modifying the contents of text file ini j2me

    Hi,
    I'm developing a application in j2me wherein i need to erase the previous stored contents fromthe text file and store new content submitted thru the front end program. Kindly please suggest me how to proceed in this regard.
    Thanks

    If you want to change an ini file in the jar file: you can't do that.
    You can however store the changes in the RMS.

  • Text file being overwrite when another info is save in he same text file

    At first, the text file is use for saving user information but after that when i want to save more thing in the same text file, the user infomration is being overwite. How can prevent the original message from being overwite?

    When you create the CFile/CNiFile object to write to the file, use the CFile::modeNoTruncate flag to indicate that you want to open the file as an existing file and that you don't want the file to be truncated to 0 length. For more information, see documentation for the CFile flags.
    - Elton

  • How to get the content of text file to write in JTextArea?

    Hello,
    I have text area and File chooser..
    i wanna the content of choosed file to be written into text area..
    I have this code:
    import java.awt.Container;
    import java.awt.FlowLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.io.File;
    import javax.swing.JButton;
    import javax.swing.JFileChooser;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.*;
    public class Test_Stemmer extends JFrame {
    public Test_Stemmer() {
    super("Arabic Stemmer..");
    setSize(350, 470);
    setDefaultCloseOperation(EXIT_ON_CLOSE);
    setResizable(false);
    Container c = getContentPane();
    c.setLayout(new FlowLayout());
    JButton openButton = new JButton("Open");
    JButton saveButton = new JButton("Save");
    JButton dirButton = new JButton("Pick Dir");
    JTextArea ta=new JTextArea("File will be written here", 10, 25);
    JTextArea ta2=new JTextArea("Stemmed File will be written here", 10, 25);
    final JLabel statusbar =
                  new JLabel("Output of your selection will go here");
    // Create a file chooser that opens up as an Open dialog
    openButton.addActionListener(new ActionListener() {
       public void actionPerformed(ActionEvent ae) {
         JFileChooser chooser = new JFileChooser();
         chooser.setMultiSelectionEnabled(true);
         int option = chooser.showOpenDialog(Test_Stemmer.this);
         if (option == JFileChooser.APPROVE_OPTION) {
           File[] sf = chooser.getSelectedFiles();
           String filelist = "nothing";
           if (sf.length > 0) filelist = sf[0].getName();
           for (int i = 1; i < sf.length; i++) {
             filelist += ", " + sf.getName();
    statusbar.setText("You chose " + filelist);
    else {
    statusbar.setText("You canceled.");
    // Create a file chooser that opens up as a Save dialog
    saveButton.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent ae) {
    JFileChooser chooser = new JFileChooser();
    int option = chooser.showSaveDialog(Test_Stemmer.this);
    if (option == JFileChooser.APPROVE_OPTION) {
    statusbar.setText("You saved " + ((chooser.getSelectedFile()!=null)?
    chooser.getSelectedFile().getName():"nothing"));
    else {
    statusbar.setText("You canceled.");
    // Create a file chooser that allows you to pick a directory
    // rather than a file
    dirButton.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent ae) {
    JFileChooser chooser = new JFileChooser();
    chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
    int option = chooser.showOpenDialog(Test_Stemmer.this);
    if (option == JFileChooser.APPROVE_OPTION) {
    statusbar.setText("You opened " + ((chooser.getSelectedFile()!=null)?
    chooser.getSelectedFile().getName():"nothing"));
    else {
    statusbar.setText("You canceled.");
    c.add(openButton);
    c.add(saveButton);
    c.add(dirButton);
    c.add(statusbar);
    c.add(ta);
    c.add(ta2);
    public static void main(String args[]) {
    Test_Stemmer sfc = new Test_Stemmer();
    sfc.setVisible(true);
    }could you please help me, and tell me what to add or to modify,,
    Thank you..                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    realahmed8 wrote:
    thanks masijade,
    i have filter the file chooser for only text files,
    but i still don't know how to use FileReader to put text file content to the text area (ta) ..
    please tell me how and where to use it..How? -- See the IO Tutorials on Sun for the FileReader (and I assume you know how to call setText and append in the JTextArea).
    Where? -- In the actionPerformed method (better would be a separate thread that is triggered through the actionPerformed method, but that is probably beyond you at the moment), of course.
    Give it a try.

  • Output folder contents into text file

    Hello, everyone.
    I am new to automator, and I'd like to learn how to use it. Recently, someone asked me if there was a way that they could select a folder and somehow dump the filenames of all items in that folder (non-recursively) to a text file. It seems to me that this is the sort of thing that Automator would be able to do. Can anyone give me some tips on how I might go about doing this?
    I also figured this might be possible with a custom bash command. I am more experienced with bash and Unix command line, so if there is a better option there, please let me know. I just figured I would check here first.
    Thanks!

    That does work, but the only problem is that the folder who's contents are being exported will be different every time. (I see now that I didn't specify that in my first post). Ideally, he would either be given an option to select a folder to read, or he would just be able to drag and drop the folder onto an application (or into terminal) and have it perform this task.

  • Need to search contents of text files on a windows network drive....

    I am trying to search the content of a directory on a windows network drive for that contains .sas files (essentially text files) for a certain text string. Find does not seem to do this. Any ideas/suggestions?
    When I copy a file to my desktop I can do it easily, but that is not an option.

    Uh yeah....in my opinion GREATLY affects Apple's claim to windows compatibility......unless there is a solution out there. My firm is windows-based and we have a terabyte or so of data and files related to various stuff all buried in subfolders..and all I want is to search one folder for one text string.
    I'm praying for a solution here.....

  • Upload a text file of values when run a query

    In SAP BW 3.x BEx Analyzer, we can import a text file with list of values for each variable.
    For example, you want to run a report for certain product numbers, but say the prod no list is of 3000 no's long, it'll take the user forever to select and enter them in the report entry variable, so instead you upload a text file, with all this list of 3000 prod no's and run the report.
    Does this option still exist anywhere for version 7.0? BI Analyzer is different than Bex Analyzer. Can anyone explain it? Thanks!

    Hi Qingbo,
    Not using any standard solution (i don't know any in 3.5) you can use an variable of type exit. Inside the variable value calculation, you can use a flat file stored in the application server to read the values of the variable.
    Another option is to store those values in a cube (mantained using flat file upload or a BPS layout) and use a replacement path variable using a query over this cube to run the query you need.
    Hope this helps.
    Regards,
    Diego

  • Network files not showing when saving a document in Word 2010

    I have some users setup where their local profile on their laptop syncs with our server so they can take the laptop home, work on files, bring it back to work and have it sync with files and folders when they get back.
    One user is able to open a document in her "My Documents" folder (which syncs with the network drive).  She's able to edit the document however when she goes to save the document to the same folder, she doesn't see all of the files that are
    supposed to be in there.  If she just saves the file anyway and goes to her documents folder via Windows Explorer, she can see the file she saved as well as the other files.  
    I'm not sure why it's happening but it seems to only happen when she saves a file in Word.
    The affected user is running Windows 7 64-Bit with Word 2010.
    Any thoughts?

    Hi,
    What are the other files' types in that location?
    Suppose the user is trying to save a .docx file in that folder, she should only be seeing the same type of files as the type she's saving.
    You can have the user try to change the "Save as type" and check if she's able to see other files.
    Regards,
    Melon Chen
    TechNet Community Support

  • Need to see ALL files in folder when saving from Word 2003 OR Word 2013 program

    Here is the issue.... A customer of mine has the need to save files in order (Communications with customers by date and time)
    BUT..... when saving the file word does not let him see ALL the documents (.doc AND .docx) in the save dialog. (I know we could convert but there seems to be issues with the conversion, at least on the research I have done)
    Is there a way for the Word save dialog box to display ALL the files in the selected folder?  OR is this just an undocumented feature OR a WOW we never thought of that....
    Thanks!
    John
    John Huber

    Hi,
    When we save a Word document, the "Save As" dialog only displays these files which are the same type as the one we are trying to save. To display other types of files, select from the "Save as type" box, but I haven't realized there's a way to show
    all types of files when saving. This is just how it works so far.
    Thanks,
    Melon Chen
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • Are these unnecessary files/folders?  (When saving a premiere project)

    Using Premiere Pro CS3 on Windows 7.
    When saving a project, I'm always left with the actual file ( a .prproj file) and then some folders which also contain files.  The folders created are called "Media Cache Files" "Adobe Premiere Pro Preview Files" "Adobe Premiere Pro Auto-Save" and "Encoded Files".  Now I know the original .prproj file is NEEDED, but what about the excess stuff?  I need to free up some space on my comp but don't want to ruin the project in case I need to edit it in the future.  Thank you!

    Well, I have multiple projects and it's unlikely I will have to recreate all of them, and very unlikely I'll have to recreate all of them at the SAME time.  So can I (temporarily at least, since they'll be recreated) delete those folders?  Will there be any down side besides having to wait for them to load again once I reload the project?  Does this go for all 4 folders I mentioned or just some...?

  • Content of illustrator file is different when opening in and old cs version.

    Hi all!
    I have a very awful and urgent problem in my job right now, i design some advertisings that goes regularly from month to month, so some advertisings are just like the last month used but with some data changed.
    My problem:
    I have an illustrator file (.ai) saved and created in CS3 with pdf compability, outlines, and files linked and included on the same cd,
    but when opening the same .ai file in another machine but with CS2 (the client's PC).. it shows a very old version of the file with ALL linked files embebbed (and those are different that are on the cd!!)., in the CS3 file i saved and recorded on cd i replaced all things of course and re-save it. I don't know what is wrong, but when i open it in another machine (i.e. a Mac) it shows the correct version of advertising. But not with  the client's machine...
    In my illustrator file, there is only text outlines and 2 psd. Each PSD have only 1 layer, 'cause they were flattened (thet are actually letters scanned).
    So basically: My .ai file, created in CS3 in a Mac,  seems totally different and embebbed when opening in CS2 in a PC.
    I hope someone can help me with this urgent matter Thanks a lot everyone!!

    In regards to the illustrator file link not matching, there is nothing wrong with the .ai file., your problem is with the filenames on the linked images. Your linked images have the SAME EXACT FILENAME AS THE OLD ones connected to the clients machine. You need to break the link to the old bad files and re-establish them to your good files.
    Use links palete Flyout menu >> link information to find the location of the images. Change the name of an enclosing folder, or some other method to break the link to old images. Relink to new images, by placing them next to the .ai file in the same folder, and  open the .ai file.

  • Distiller missing text and image links when saving to pdf

    Not sure if anyone has experienced this issue before. Basically I create artwork 1up in indesign CS3 and print as a postscript file "print ready settings" then create a pdf through distiller 8.1.2. After this I then imposition the 1up PDF back into indesign (using the pdf as a link and then step and repeat it) then I print the new imposed artwork as postscript file again and distill it as a PDF ready for offset printing.
    Most time this process works like a dream, but every now and then distiller doesn't want to process the file correctly and images and sometimes text have dropped off the final imposed PDF file. It doesnt notify me of any problems when distilling. As you can imagine working in the print industry this is VERY SCARY
    As i am using a common 1up pdf link the imposition should be correct, (all the pdf linked images should be the same anyway) Is it a memory issue, or a bug in distiller perhaps.
    Im running a Mac with OSX 10.4.11 with 2Gig of RAM.
    If you would like to see a sample of the issue let me know.
    Any help on this would be awesome.

    thanks for the replies,
    Working in a pre-press environment we obviously prefer to print from pdf files (as opposed to using supplied native art). As a result I am always receiving pdf files from external clients who have saved their artwork from indesign to pdf format, so Im not sure what the real difference is between me imposing a supplied indesign/pdf files in indesign vs me imposing my own indesign/pdf files in indesign. (aprt from perhaps going through distiller twice)
    i can see what your saying though and for years i have been using the cut and paste and step and repeat method but recently changed my workflow for a few reasons
    - I noticed that by printing a 1up pdf and relinking the file back into my indesign imposition the final imposed pdf was lower in size
    - if a client made a change to the artwork after imposing (which always happens) all i had to do was make the change, resave the pdf 1up link again and update the link and it did it for me and saved me from step and repeating all over again,
    - whenever the job was printed again in the future i could use the same procedure, resave as 1up pdf again and update the link.
    - plus i knew that if i was using the one link all my step and repeats would be exactly the same each time (and i didn't have to worry that a graphic that hadn't been selected/grouped correctly and would drop off when step and repeating)
    .....and for sure it probably is a slightly longer way to impose a job for print but it saves me half the time on the next print run, and i can use my imposition file as a template for similar jobs also.
    I have found the workflow i use works fine, apart from these rare hiccups which i can get around by resaving the pdf again anyway, but what Im really worried about is the times this error presents itself and doesn't notify me that a problem has occurred.

  • Mavericks Server - Files/Folders disappearing when saving or copying.

    Hello,
    I have a Mac Mini running Mavericks(Server) with a Promise raid attached.
    The users are part of a 'Staff_All' group and said group has RW access to the file server through ACL. A few times now the user has created a folder and upon copying items, saving items or even creating new items in the folder the items will disappear from their view. If I log in to the server itself the items are fully visible, and upon creating a new folder on the server and copying the folder contents into the new folder he can see the items just fine. This doesn't always happen, so the work around for now is have the user create a new folder and recopy the items into the new folder. I have tried connecting as SMB2 and AFP, same results. Nothing looks odd with the permissions.
    Any insight that can be provided would be appreciated.

    In the sidebar of the Server.app window, select the icon at the top with the name of the server. Then select the Storage tab in the main window pane.
    Navigate to the folder in question and select it. From the popup menu at the bottom with a gear icon, select
              Edit Permissions...
    Verify that the permissions are what they should be, and make changes if necessary. Then, from the same menu, select
              Propagate Permissions...
    Check all applicable boxes, including Access Control List. If in doubt, check all boxes. Click OK.

Maybe you are looking for