help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New line problem?


From: Avinoam
Subject: Re: New line problem?
Date: Fri, 3 Feb 2017 04:43:46 -0800 (PST)

Athanatos wrote
> I'm trying to make a program to extract some information from a text file
> and recreate it in new files.
> 
> I may be doing something very wrong but when writing to a new file with
> fprintf no new lines are created with \n
> 
> I'm uploading the file I want to take data from so that you can recreate
> it
> _carddb.txt
> <http://octave.1599824.n4.nabble.com/file/n4681734/_carddb.txt>  
> 
> mulligan.m <http://octave.1599824.n4.nabble.com/file/n4681734/mulligan.m>  

Another option is to open the file with "t" option:

codes = fopen("codes.txt","wt+");
cards = fopen("cards.txt","wt+");

Avinoam






--
View this message in context: 
http://octave.1599824.n4.nabble.com/New-line-problem-tp4681734p4681740.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]