Login  Register

Differences in Tab Delimited files between PCs and Macs

Posted by hallockk on Jun 29, 2010; 5:45pm
URL: http://imagej.273.s1.nabble.com/Differences-in-Tab-Delimited-files-between-PCs-and-Macs-tp3687786.html

Hi,

    I'm developing a program that needs to function on both Macs and PCs.  My current problem is that I'm creating a file for Excel to open, but the format is only correct on a PC.  

    I'm appending the following string:

    String HemoTotalString = StudentNames + "\t" + HemoAStr + "\t" + HemoSStr + "\t" + HemoFStr + "\t" + "Date: " + ExptDate + "\t" + "Time: " + ExptTime;

   to a file using the following command:

   IJ.append(HemoTotalString, SavingPath+TodayTeachFileName+".xls");

   When I open the file on a PC, it opens fine with each string in their individual rows, but on a Mac, the separation is messed up or non-existent.  

    Any suggestions?  

Thanks,

Kevin

----------------------------------------------
Dr. Kevin Hallock
Boston University School of Medicine
Phone: 617-414-2333
Fax: 617-414-2316
Email: [hidden email]